Archived
修复了配置文件中填写了默认显示主题却不生效的问题
This commit is contained in:
2 files changed
+1
-10
No files matched your search
@@ -135,7 +135,7 @@ def main() -> Response or str:
|
|||||||
return ErrorProcess().get_theme_list()
|
return ErrorProcess().get_theme_list()
|
||||||
if name and name != 'null':
|
if name and name != 'null':
|
||||||
if not theme:
|
if not theme:
|
||||||
theme = 'lewd'
|
theme = conf.default_style # 设置默认主题
|
||||||
build_page_result = build_page(name, length, theme) # 开始处理整体页面
|
build_page_result = build_page(name, length, theme) # 开始处理整体页面
|
||||||
if build_page_result[0]:
|
if build_page_result[0]:
|
||||||
response = make_response(build_page_result[1]) # 设置响应体 和 响应头
|
response = make_response(build_page_result[1]) # 设置响应体 和 响应头
|
||||||
|
|||||||
@@ -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']
|
|
||||||
Reference in New Issue
Block a user