From 135fa155244c10f26c9757724729847fb4961207 Mon Sep 17 00:00:00 2001 From: narugo1992 Date: Tue, 27 Aug 2024 22:10:00 +0800 Subject: [PATCH] dev(narugo): exist_ids --- zoo/arknights.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zoo/arknights.py b/zoo/arknights.py index 9183135..19751a9 100644 --- a/zoo/arknights.py +++ b/zoo/arknights.py @@ -154,6 +154,9 @@ def _download(item, dst_file): tar_create_index_for_directory(upload_dir) + with open(os.path.join(upload_dir, 'exist_ids.json'), 'w') as f: + json.dump(sorted(exist_ids), f) + with open(os.path.join(upload_dir, 'README.md'), 'w') as f: print('---', file=f) print('license: other', file=f)