From 11e4632aaf2be56c776dbc4e9f0ad5065bb60b5f Mon Sep 17 00:00:00 2001 From: Kyomotoi <1172294279@qq.com> Date: Sat, 31 Oct 2020 20:02:35 +0800 Subject: [Update] --- api.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'api.py') diff --git a/api.py b/api.py index 7121bd5..f0306bd 100644 --- a/api.py +++ b/api.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # -*- encoding: utf-8 -*- ''' -@File : api.py +@File : app.py @Time : 2020/10/24 00:25:34 @Author : Kyomotoi @Contact : kyomotoiowo@gmail.com @@ -166,13 +166,13 @@ async def index(request: Request): 'data_normal': data_normal, 'data_nearR18': data_nearR18, 'data_r18': data_r18, - 'times_all': "完善中", + 'times_all': 4, 'date_now': localtime, - 'times_now': "完善中", - 'date_yesterday': "完善中", - 'times_yesterday': "完善中", - 'date_before_yesterday': "完善中", - 'times_before_yesterday': "完善中", + 'times_now': 6, + 'date_yesterday': 7, + 'times_yesterday': 8, + 'date_before_yesterday': 9, + 'times_before_yesterday': 10, 'info_ip': query, 'info_continent': info["continent"], 'info_country': info["country"], @@ -239,4 +239,4 @@ if __name__ == '__main__': with open(file_info, 'r') as f: file_info = json.load(f) import uvicorn - uvicorn.run(app, host=file_info["html"]["ip"], port=file_info["html"]["port"]) + uvicorn.run(app, host=file_info["html"]["ip"], port=file_info["html"]["port"]) \ No newline at end of file -- cgit v1.2.3