删除不需要的代码

This commit is contained in:
MarkusJoe
2022-02-16 16:25:07 +08:00
parent 7dda0c747e
commit 69ac962336
1 file changed
-13
-13
View File
@@ -26,19 +26,6 @@ app.config['JSON_SORT_KEYS'] = False # 设置JSON消息不根据字母顺序重
app.config['JSON_AS_ASCII'] = False # 设置JSON消息显示中文 app.config['JSON_AS_ASCII'] = False # 设置JSON消息显示中文
@app.route('/sync')
def sync():
"""
同步count.db
:return:
"""
try:
requests.get('https://themedatabase.vercel.app/')
return {'code': 200, 'msg': '从远程服务器同步成功', 'data': []}
except BaseException as e:
return {'code': -2, 'msg': f'从远程服务器同步失败: {e}', 'data': []}
def build_page(name: str, length: int, theme: str) -> list[bool or Response] or list[bool or str] or bool: def build_page(name: str, length: int, theme: str) -> list[bool or Response] or list[bool or str] or bool:
""" """
渲染最终的页面 渲染最终的页面