Fixed missing dates in combined_data

This commit is contained in:
eth3lbert 2024-04-14 13:52:10 +08:00
parent eab244b942
commit 8a15ae947a
No known key found for this signature in database

View File

@ -149,7 +149,7 @@ async def write_files(datalist: List[Dict[str, List[bytes]]]):
if not base_path.exists():
base_path.mkdir()
sorted_date = sorted(chain.from_iterable(datalist), reverse=True)
sorted_date = sorted(set(chain.from_iterable(datalist)), reverse=True)
# combine only the first 30 days
combined_data: Dict[str, Set[bytes]] = {
date: set() for date in islice(sorted_date, 30)