len
This commit is contained in:
parent
56e8ae6274
commit
d7d08135ff
1 changed files with 2 additions and 4 deletions
|
|
@ -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]:
|
||||
|
|
|
|||
Loading…
Reference in a new issue