This commit is contained in:
Jesse Bannon 2022-09-30 21:04:23 -07:00
parent 56e8ae6274
commit d7d08135ff

View file

@ -238,10 +238,8 @@ class DownloadMappings:
-------
Number of entries in the mapping with this upload date
"""
return sum(
entry
for entry in self._entry_mappings.values()
if entry.upload_date == upload_date_standardized
return len(
[_ for _ in self._entry_mappings.values() if _.upload_date == upload_date_standardized]
)
def get_entries_out_of_range(self, date_range: DateRange) -> Dict[str, DownloadMapping]: