bug fix
This commit is contained in:
parent
3d055b74ea
commit
2d39197174
|
|
@ -48,12 +48,12 @@ def log_change(
|
||||||
}
|
}
|
||||||
changes_text = json.dumps(changes_payload, ensure_ascii=False, indent=2)
|
changes_text = json.dumps(changes_payload, ensure_ascii=False, indent=2)
|
||||||
|
|
||||||
|
history = ChangeHistory(project_id=project_id,
|
||||||
|
changes=changes_text,
|
||||||
|
status=status)
|
||||||
# ✅ 只传模型真实存在的字段
|
# ✅ 只传模型真实存在的字段
|
||||||
return db.add_change_history(
|
db.create_change_history(history)
|
||||||
project_id=project_id,
|
return history
|
||||||
changes=changes_text,
|
|
||||||
status=status,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def get_change_histories(project_id: int, status: str = None) -> list[dict]:
|
def get_change_histories(project_id: int, status: str = None) -> list[dict]:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue