File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1386,12 +1386,13 @@ def _database_time_now(self) -> datetime:
1386
1386
"""
1387
1387
return self .e_index .execute_query (select (func .now ())).scalar ()
1388
1388
1389
- def _newest_known_dataset_addition_time (self , product_name : str ) -> datetime :
1389
+ def _newest_known_dataset_addition_time (self , product_name : str ) -> datetime | None :
1390
1390
"""
1391
1391
Of all the datasets that are present in Explorer's own tables, when
1392
1392
was the most recent one indexed to ODC?
1393
1393
"""
1394
- return self .e_index .latest_dataset_added_time (self .get_product (product_name ).id )
1394
+ id_ = self .get_product (product_name ).id
1395
+ return None if id_ is None else self .e_index .latest_dataset_added_time (id_ )
1395
1396
1396
1397
def _mark_product_refresh_completed (
1397
1398
self , product : ProductSummary , refresh_timestamp : datetime
You can’t perform that action at this time.
0 commit comments