Skip to content

Commit

Permalink
Update document_history.py (#1815)
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineMarnat authored Jun 17, 2024
1 parent 24e010e commit 6332bcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c2corg_api/models/document_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,4 @@ def is_less_than_24h_old(document_id):
DocumentVersion.history_metadata_id == HistoryMetaData.id). \
filter(DocumentVersion.document_id == document_id). \
order_by(asc(HistoryMetaData.written_at)).limit(1).scalar()
return datetime.now(timezone.utc) - written_at <= timedelta(hours=24)
return datetime.now(timezone.utc) - written_at <= timedelta(hours=720)

0 comments on commit 6332bcc

Please sign in to comment.