增加 Web 管理页面
This commit is contained in:
4
main.py
4
main.py
@@ -5,6 +5,7 @@ from py12306.app import *
|
||||
from py12306.log.common_log import CommonLog
|
||||
from py12306.query.query import Query
|
||||
from py12306.user.user import User
|
||||
from py12306.web.web import Web
|
||||
|
||||
|
||||
def main():
|
||||
@@ -18,13 +19,14 @@ def main():
|
||||
Query.check_before_fun()
|
||||
|
||||
####### 运行任务
|
||||
Web.run()
|
||||
User.run()
|
||||
Query.run()
|
||||
if not Const.IS_TEST:
|
||||
while True:
|
||||
sleep(10000)
|
||||
else:
|
||||
if Config().is_cluster_enabled(): stay_second(5) # 等待接受完通知
|
||||
if Config().is_cluster_enabled(): stay_second(5) # 等待接受完通知
|
||||
CommonLog.print_test_complete()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user