فهرست منبع

Revert "number of thread is wrong...?"

This reverts commit ffe34b21fbdcf9a61762d830bb7e8b7e9acc05b4.
Bob Huang 3 سال پیش
والد
کامیت
361ede36a5
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      backend_refactor/app.py

+ 1 - 1
backend_refactor/app.py

@@ -30,6 +30,7 @@ with app.app_context():
     # db.drop_all()
     db.create_all()
 
+init_workers()
 
 try:
     os.mkdir(UPLOAD_DIR + "/result")
@@ -66,5 +67,4 @@ def error_handler(e):
 
 
 if __name__ == '__main__':
-    init_workers()
     app.run()