From d78d70adf570f082a3a4e4d063edd36a61deb63b Mon Sep 17 00:00:00 2001 From: James Woglom Date: Thu, 26 Mar 2026 03:56:47 -0400 Subject: [PATCH] fix #136 --- tconnectsync/sync/tandemsource/autoupdate.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tconnectsync/sync/tandemsource/autoupdate.py b/tconnectsync/sync/tandemsource/autoupdate.py index 36aec7a..82b3fef 100644 --- a/tconnectsync/sync/tandemsource/autoupdate.py +++ b/tconnectsync/sync/tandemsource/autoupdate.py @@ -19,6 +19,7 @@ class TandemSourceAutoupdate: self.last_event_time = 0 self.last_attempt_time = 0 self.last_event_seqnum = None + self.last_successful_process_time_range = None self.time_diffs_between_attempts = [] self.time_diffs_between_updates = [] @@ -72,11 +73,11 @@ class TandemSourceAutoupdate: self.last_attempt_time = now self.time_diffs_between_attempts = [] else: - logger.info('No new reported tandemsource data. cur_max_date: %s (%dm ago) last_event_time: %s (%dm ago)' % ( + logger.info('No new reported tandemsource data. cur_max_date: %s (%s) last_event_time: %s (%s)' % ( arrow.get(cur_max_date_with_events) if cur_max_date_with_events else None, - (now - cur_max_date_with_events)//60 if cur_max_date_with_events else None, + '%dm ago' % ((now - cur_max_date_with_events)//60) if cur_max_date_with_events else None, arrow.get(self.last_event_time) if self.last_event_time else None, - (now - self.last_event_time)//60 if self.last_event_time else None + '%dm ago' % ((now - self.last_event_time)//60) if self.last_event_time else None )) # If we haven't seen the pump event index update in AUTOUPDATE_NO_DATA_FAILURE_MINUTES, @@ -180,4 +181,4 @@ class AutoupdateNoNewDataDetectedError(AutoupdateError): pass class AutoupdateNoIndexChangeWarning(AutoupdateWarning): - pass \ No newline at end of file + pass