Spaces:
Running
Running
python3.7 compat
Browse files- toolbox.py +1 -1
toolbox.py
CHANGED
|
@@ -289,7 +289,7 @@ def on_report_generated(files, chatbot):
|
|
| 289 |
chatbot.append(['汇总报告如何远程获取?', '汇总报告已经添加到右侧“文件上传区”(可能处于折叠状态),请查收。'])
|
| 290 |
return report_files, chatbot
|
| 291 |
|
| 292 |
-
@lru_cache
|
| 293 |
def read_single_conf_with_lru_cache(arg):
|
| 294 |
try: r = getattr(importlib.import_module('config_private'), arg)
|
| 295 |
except: r = getattr(importlib.import_module('config'), arg)
|
|
|
|
| 289 |
chatbot.append(['汇总报告如何远程获取?', '汇总报告已经添加到右侧“文件上传区”(可能处于折叠状态),请查收。'])
|
| 290 |
return report_files, chatbot
|
| 291 |
|
| 292 |
+
@lru_cache(maxsize=128)
|
| 293 |
def read_single_conf_with_lru_cache(arg):
|
| 294 |
try: r = getattr(importlib.import_module('config_private'), arg)
|
| 295 |
except: r = getattr(importlib.import_module('config'), arg)
|