mirror of
https://github.com/FutaGuard/LowTechFilter.git
synced 2025-06-21 05:21:02 +08:00
Change enumerate to start from 1
This commit is contained in:
parent
506fbbf0b1
commit
eab244b942
@ -162,10 +162,10 @@ async def write_files(datalist: List[Dict[str, List[bytes]]]):
|
||||
|
||||
dataset = set()
|
||||
# combined_data is ordered by insertion (sorted date)
|
||||
for i, data in enumerate(combined_data.values()):
|
||||
for i, data in enumerate(combined_data.values(), start=1):
|
||||
dataset.update(data)
|
||||
# accumulate = "\n".join(sorted(set(accumulate.split("\n"))))
|
||||
base_path.joinpath(f"past-{(i + 1):02d}day.txt").write_bytes(
|
||||
base_path.joinpath(f"past-{i:02d}day.txt").write_bytes(
|
||||
b"\n".join(dataset)
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user