镜像自地址
https://github.com/binary-husky/gpt_academic.git
已同步 2025-12-08 07:26:48 +00:00
change cache to lru_cache for lower python version
这个提交包含在:
@@ -1,4 +1,4 @@
|
|||||||
from functools import cache
|
from functools import lru_cache
|
||||||
from toolbox import get_conf
|
from toolbox import get_conf
|
||||||
CODE_HIGHLIGHT, ADD_WAIFU, LAYOUT = get_conf("CODE_HIGHLIGHT", "ADD_WAIFU", "LAYOUT")
|
CODE_HIGHLIGHT, ADD_WAIFU, LAYOUT = get_conf("CODE_HIGHLIGHT", "ADD_WAIFU", "LAYOUT")
|
||||||
|
|
||||||
@@ -24,7 +24,7 @@ def minimize_js(common_js_path):
|
|||||||
except:
|
except:
|
||||||
return common_js_path
|
return common_js_path
|
||||||
|
|
||||||
@cache
|
@lru_cache
|
||||||
def get_common_html_javascript_code():
|
def get_common_html_javascript_code():
|
||||||
js = "\n"
|
js = "\n"
|
||||||
common_js_path_list = [
|
common_js_path_list = [
|
||||||
|
|||||||
在新工单中引用
屏蔽一个用户