Fixed potential re-download

Moved forward save-history check 1 indent so it works with download by id too
Mapped all ids to int since there are cases where its a string in the API
This commit is contained in:
karamori77 2021-04-20 11:04:52 +08:00 committed by GitHub
parent 373086b459
commit 00aad774ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,7 +69,7 @@ def main():
with DB() as db: with DB() as db:
data = map(int, db.get_all()) data = map(int, db.get_all())
doujinshi_ids = list(set(doujinshi_ids) - set(data)) doujinshi_ids = list(set(map(int, doujinshi_ids)) - set(data))
if doujinshi_ids: if doujinshi_ids:
for i, id_ in enumerate(doujinshi_ids): for i, id_ in enumerate(doujinshi_ids):