refactor: remove legacy business modules and update platform application components
This commit is contained in:
parent
ff579da153
commit
6dde00d07b
@ -474,7 +474,9 @@ def get_stats():
|
|||||||
|
|
||||||
@app.route("/api/reports")
|
@app.route("/api/reports")
|
||||||
def list_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>")
|
@app.route("/api/reports/<tid>")
|
||||||
def get_report(tid):
|
def get_report(tid):
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user