Spaces:
Sleeping
Sleeping
Ekimart commited on
Commit ·
1d8ad25
1
Parent(s): b2de8b7
Refactorer le point d'entrée principal pour simplifier l'initialisation du service WebSocket et l'attribution de l'application.
Browse files
main.py
CHANGED
|
@@ -403,10 +403,7 @@ class WebSocketNotificationService:
|
|
| 403 |
)
|
| 404 |
|
| 405 |
|
| 406 |
-
|
| 407 |
service = WebSocketNotificationService()
|
| 408 |
service.run()
|
| 409 |
-
|
| 410 |
-
|
| 411 |
-
if __name__ == "__main__":
|
| 412 |
-
main()
|
|
|
|
| 403 |
)
|
| 404 |
|
| 405 |
|
| 406 |
+
if __name__ == "__main__":
|
| 407 |
service = WebSocketNotificationService()
|
| 408 |
service.run()
|
| 409 |
+
app = service.app
|
|
|
|
|
|
|
|
|