Skip to content

Commit

Permalink
Updated backwards compatibility for timestamps. Added cutoff time
Browse files Browse the repository at this point in the history
  • Loading branch information
Dympna Laverty committed Oct 9, 2023
1 parent 3d5efbc commit 9873867
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ def run(self, params={}, state={}): # noqa: C901
state.pop(self.TRUST_MONITOR_NEXT_PAGE_PARAMS)

# Get admin logs
log_type = ADMIN_LOGS_LOG_TYPE
mintime, maxtime, get_next_page = self.get_parameters_for_query(
ADMIN_LOGS_LOG_TYPE,
now,
Expand Down Expand Up @@ -286,7 +285,7 @@ def get_highest_timestamp(self, last_recorded_highest_timestamp, logs, backward_
# Convert the previous timestamp (13 digit format) to the new format used
# (Timestamps now held in the last log timestamp format which is a 10 digit unix timestamp)
# Note trust monitor events maintain the surfaced_timestamp which is 13 digit unix timestamp
self.logger.info(f"Ensure backward compatibility (to older one timestamp method)")
self.logger.info("Ensure backward compatibility (to older one timestamp method)")
if log_type != TRUST_MONITOR_EVENTS_LOG_TYPE:
last_recorded_highest_timestamp = int(last_recorded_highest_timestamp / 1000)
highest_timestamp = last_recorded_highest_timestamp
Expand Down

0 comments on commit 9873867

Please sign in to comment.