Dump local JSON when finalizing

This commit is contained in:
taoky 2024-08-02 20:21:27 +08:00
parent 52ceabcdd4
commit 1281e6950d

View File

@ -447,6 +447,7 @@ class SyncBase:
# We're really trusty that this is all encoded in UTF-8. :/ # We're really trusty that this is all encoded in UTF-8. :/
f.write(f' <a href="{pkg}/">{pkg}</a><br/>\n') f.write(f' <a href="{pkg}/">{pkg}</a><br/>\n')
f.write(" </body>\n</html>") f.write(" </body>\n</html>")
self.local_db.dump_json()
def download(session: requests.Session, url: str, dest: Path) -> bool: def download(session: requests.Session, url: str, dest: Path) -> bool: