测试heroku服务器部署

This commit is contained in:
MarkusJoe
2022-02-10 13:17:11 +08:00
parent 0752eef3b3
commit 290289c917
3 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -23,7 +23,7 @@ app.config['JSON_SORT_KEYS'] = False # 设置JSON消息不根据字母顺序重
app.config['JSON_AS_ASCII'] = False # 设置JSON消息显示中文
def build_page(name: str, length: int, theme: str) -> list[bool | Response] | list[bool | str] | bool:
def build_page(name: str, length: int, theme: str) -> list[bool or Response] or list[bool or str] or bool:
"""
渲染最终的页面
:param theme:
@@ -46,7 +46,7 @@ def build_page(name: str, length: int, theme: str) -> list[bool | Response] | li
@app.route('/get', methods=['GET', 'POST']) # 允许 GET 和 POST 方法
def api_page() -> Response | str:
def api_page() -> Response or str:
"""
API 页面函数
:return:
+2 -2
View File
@@ -11,8 +11,8 @@ from typing import Any
from db.db import fetch_table
def re_sort_number_image(origin_number: str, theme: str) -> tuple[bool, bool, bool, bool] | list[
bool | list[Any] | Any]:
def re_sort_number_image(origin_number: str, theme: str) -> tuple[bool, bool, bool, bool] or list[
bool or list[Any] or Any]:
"""
返回一个排列好的svg base64代码列表
:param theme:
+1 -1
View File
@@ -17,7 +17,7 @@ class ErrorProcess:
'msg': '',
'data': None}
def get_theme_list(self):
def get_theme_list(self) -> Response:
"""
直接获取可选主题
:return: