refactor: remove legacy business modules and update platform application components

This commit is contained in:
hangyu.tao 2026-04-02 12:45:11 +08:00
parent ff579da153
commit 6dde00d07b
2 changed files with 4 additions and 2 deletions

View File

@ -474,7 +474,9 @@ def get_stats():
@app.route("/api/reports")
def list_reports():
return jsonify(list(reports_db.values()))
# 过滤掉软删除的任务报告,并且过滤掉“孤儿报告”(即 task 彻底不存在的残留垃圾)
r_list = [r for tid, r in reports_db.items() if tid in tasks_db and not tasks_db[tid].get("is_deleted")]
return jsonify(r_list)
@app.route("/api/reports/<tid>")
def get_report(tid):

File diff suppressed because one or more lines are too long