12.2 清理bug修改
This commit is contained in:
parent
bb7c95d1ab
commit
75d5d597e4
@ -33,16 +33,7 @@ def create_app():
|
|||||||
app.connection_limiters['get_deviation'] = ConnectionLimiter(max_connections=10)
|
app.connection_limiters['get_deviation'] = ConnectionLimiter(max_connections=10)
|
||||||
app.connection_limiters['default'] = ConnectionLimiter(max_connections=10)
|
app.connection_limiters['default'] = ConnectionLimiter(max_connections=10)
|
||||||
|
|
||||||
@app.teardown_request
|
|
||||||
def teardown_request(exception):
|
|
||||||
output_folder = getattr(g, 'output_folder', None)
|
|
||||||
# if output_folder:
|
|
||||||
# # 执行与output_folder相关的清理操作(例如删除临时文件)
|
|
||||||
# logger = g.logger
|
|
||||||
# logger.info(f"正在清理输出文件夹: {output_folder}")
|
|
||||||
# file_ids=read_file_ids(output_folder)
|
|
||||||
# delete_file_by_ids(file_ids)
|
|
||||||
# logger.info("清理完毕!")
|
|
||||||
return app
|
return app
|
||||||
|
|
||||||
#TODO:培训要求、总体要求、进度要求、'建设要求'到技术要求中,归类到其他要求中
|
#TODO:培训要求、总体要求、进度要求、'建设要求'到技术要求中,归类到其他要求中
|
||||||
|
Loading…
x
Reference in New Issue
Block a user