动态代码解释器

This commit is contained in:
binary-husky
2023-09-23 01:51:05 +08:00
parent d56bc280e9
commit 3672c97a06
8 changed files with 350 additions and 5 deletions

View File

@@ -527,6 +527,7 @@ def promote_file_to_downloadzone(file, rename_file=None, chatbot=None):
if 'files_to_promote' in chatbot._cookies: current = chatbot._cookies['files_to_promote']
else: current = []
chatbot._cookies.update({'files_to_promote': [new_path] + current})
return new_path
def disable_auto_promotion(chatbot):
chatbot._cookies.update({'files_to_promote': []})