@@ -690,6 +690,7 @@ def _update_log_references(self, address: int, slot: int) -> None:
690690 """Update next expected log timestamps."""
691691 if self ._logs is None :
692692 return
693+
693694 log_time_stamp = self ._logs [address ][slot ].timestamp
694695 is_consumption = self ._logs [address ][slot ].is_consumption
695696
@@ -812,12 +813,14 @@ def _logs_missing(self, from_timestamp: datetime) -> list[int] | None:
812813 log_interval = self ._log_interval_consumption
813814 elif self ._log_interval_production is not None :
814815 log_interval = self ._log_interval_production
816+
815817 if (
816818 self ._log_interval_production is not None
817819 and log_interval is not None
818820 and self ._log_interval_production < log_interval
819821 ):
820822 log_interval = self ._log_interval_production
823+
821824 if log_interval is None :
822825 return None
823826
@@ -877,7 +880,7 @@ def _missing_addresses_before(
877880 if self ._log_interval_consumption == 0 :
878881 pass
879882
880- if self ._log_production is not True :
883+ if not self ._log_production : #False
881884 expected_timestamp = (
882885 self ._logs [address ][slot ].timestamp - calc_interval_cons
883886 )
@@ -935,7 +938,7 @@ def _missing_addresses_after(
935938 # Use consumption interval
936939 calc_interval_cons = timedelta (minutes = self ._log_interval_consumption )
937940
938- if self ._log_production is not True :
941+ if not self ._log_production : # False
939942 expected_timestamp = (
940943 self ._logs [address ][slot ].timestamp + calc_interval_cons
941944 )
0 commit comments