]> git.lizzy.rs Git - nhentai.git/commitdiff
Fix db ignored
authorNontre12 <62849884+Nontre12@users.noreply.github.com>
Tue, 13 Oct 2020 11:39:24 +0000 (13:39 +0200)
committerNontre12 <62849884+Nontre12@users.noreply.github.com>
Tue, 13 Oct 2020 11:39:24 +0000 (13:39 +0200)
nhentai/command.py

index 9b0a99e87d1b54f2cfefcc7d540f47fc00033b66..47fbc3c3fe9350e72169b057e75ddff048d77404 100644 (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):