Skip to content

Commit

Permalink
Fix bug in change of expiration date introduced in 5.0.51
Browse files Browse the repository at this point in the history
  • Loading branch information
evilaliv3 committed Mar 3, 2025
1 parent d9397e6 commit faaeee7
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions backend/globaleaks/handlers/recipient/rtip.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,7 @@ def db_recalculate_data_retention(session, itip, report_reopen_request):
if ttl > 0:
itip.expiration_date = get_expiration(ttl)

if prev_expiration_date != itip.expiration_date:
log_data = {
'prev_expiration_date': int(datetime.timestamp(prev_expiration_date)),
'curr_expiration_date': int(datetime.timestamp(curr_expiration_date))
}

db_log(session, tid=tid, type='update_report_expiration', user_id=user_id, object_id=itip.id, data=log_data)
return prev_expiration_date, itip.expiration_date


def db_update_submission_status(session, tid, user_id, itip, status_id, substatus_id=None):
Expand Down

0 comments on commit faaeee7

Please sign in to comment.