️ 去除重複減少體積

This commit is contained in:
tdc 2024-04-10 17:45:25 +08:00
parent 66470da876
commit f73f422d72

View File

@ -49,6 +49,7 @@ class Downloader:
accumulate = ""
for date in range(len(sort_date)):
accumulate += self.data[sort_date[date]].decode()
accumulate = "\n".join(sorted(set(accumulate.split("\n"))))
self.base_path.joinpath(f"past-{date+1}day.txt").write_bytes(
accumulate.encode()
)