Explorar o código

fix progress bar

ming %!s(int64=3) %!d(string=hai) anos
pai
achega
ae185496a0
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      main.py

+ 2 - 1
main.py

@@ -119,9 +119,10 @@ async def swapFace(req:swap_req):
 @app.post("/autoprogress")
 async def autoprogress(req:swap_req):
     ws = create_connection("ws://www.choozmo.com:8888/progress")
-    for i in range(100)
+    for i in range(100):
         time.sleep(0.1)
         ws.send(i)
+    ws.close()
     
 
 @app.post("/make_anchor_video_v2")