From c52bc271fceed92860c9edc29c916f1485142a2c Mon Sep 17 00:00:00 2001 From: Nontre12 <62849884+Nontre12@users.noreply.github.com> Date: Tue, 13 Oct 2020 13:39:24 +0200 Subject: [PATCH] Fix db ignored --- nhentai/command.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nhentai/command.py b/nhentai/command.py index 9b0a99e..47fbc3c 100644 --- a/nhentai/command.py +++ b/nhentai/command.py @@ -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):