Merge pull request #173 from Nontre12/db-ignored

Fix db ignored
This commit is contained in:
Ricter Zheng 2020-10-14 02:44:03 +08:00 committed by GitHub
commit a9bd46b426
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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