增加 Web 管理页面

This commit is contained in:
Jalin
2019-01-12 22:47:27 +08:00
parent a3e1544072
commit 994c211e2f
39 changed files with 4785 additions and 23 deletions

View File

@@ -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()