From 69ac962336db1e143904029b937751faf8ecfb68 Mon Sep 17 00:00:00 2001 From: MarkusJoe Date: Wed, 16 Feb 2022 16:25:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=B8=8D=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E7=9A=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/app.py b/app.py index 8c5000a..54a7eb8 100644 --- a/app.py +++ b/app.py @@ -26,19 +26,6 @@ app.config['JSON_SORT_KEYS'] = 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: """ 渲染最终的页面