Merge pull request #123 from FutaGuard/fix-combined

Fixed missing dates in combined_data
This commit is contained in:
踢低吸 2024-04-14 13:55:42 +08:00 committed by GitHub
commit c60bdfa574
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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)