Skip to content

Commit

Permalink
Ignore modified timestamp when diffing for timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchop committed Dec 23, 2024
1 parent 50ec7a9 commit b5ba3ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/schemas/audit.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def log_timeline(
if old:
old_dump = old.model_dump()
new_dump = new.model_dump()
new_dump.pop("modified", None)
# only retain fields that are different
for key in old_dump:
if old_dump[key] == new_dump[key]:
Expand Down

0 comments on commit b5ba3ef

Please sign in to comment.