修复了配置文件中填写了默认显示主题却不生效的问题

This commit is contained in:
MarkusJoe
2022-02-25 18:48:23 +08:00
parent 53685df8e0
commit d093324fb8
2 files changed
+1 -10

No files matched your search

+1 -1
View File
@@ -135,7 +135,7 @@ def main() -> Response or str:
return ErrorProcess().get_theme_list()
if name and name != 'null':
if not theme:
theme = 'lewd'
theme = conf.default_style # 设置默认主题
build_page_result = build_page(name, length, theme) # 开始处理整体页面
if build_page_result[0]:
response = make_response(build_page_result[1]) # 设置响应体 和 响应头
-9
View File
@@ -1,9 +0,0 @@
#!/usr/bin/env python3
# -- coding:utf-8 --
# @Author: markushammered@gmail.com
# @Development Tool: PyCharm
# @Create Time: 2022/2/4
# @File Name: __init__.py.py
__all__ = ['db']