@@ -724,6 +724,7 @@ def _update_log_references(self, address: int, slot: int) -> None:
724724 """Update next expected log timestamps."""
725725 if self ._logs is None :
726726 return
727+
727728 log_time_stamp = self ._logs [address ][slot ].timestamp
728729 is_consumption = self ._logs [address ][slot ].is_consumption
729730
@@ -852,12 +853,14 @@ def _logs_missing(self, from_timestamp: datetime) -> list[int] | None:
852853 log_interval = self ._log_interval_consumption
853854 elif self ._log_interval_production is not None :
854855 log_interval = self ._log_interval_production
856+
855857 if (
856858 self ._log_interval_production is not None
857859 and log_interval is not None
858860 and self ._log_interval_production < log_interval
859861 ):
860862 log_interval = self ._log_interval_production
863+
861864 if log_interval is None :
862865 return None
863866
@@ -917,7 +920,7 @@ def _missing_addresses_before(
917920 if self ._log_interval_consumption == 0 :
918921 pass
919922
920- if self ._log_production is False :
923+ if not self ._log_production : # False
921924 expected_timestamp = (
922925 self ._logs [address ][slot ].timestamp - calc_interval_cons
923926 )
@@ -975,7 +978,7 @@ def _missing_addresses_after(
975978 # Use consumption interval
976979 calc_interval_cons = timedelta (minutes = self ._log_interval_consumption )
977980
978- if self ._log_production is False :
981+ if not self ._log_production : # False
979982 expected_timestamp = (
980983 self ._logs [address ][slot ].timestamp + calc_interval_cons
981984 )
0 commit comments