From e043fd7f4ace83a5dbecd5b3930e39d1802c14ba Mon Sep 17 00:00:00 2001 From: Fuwn Date: Tue, 25 Jul 2023 15:55:24 -0700 Subject: fix(html): fix anime id cases --- src/due/html.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/due/html.py b/src/due/html.py index ae8ae2c..eba7e8b 100644 --- a/src/due/html.py +++ b/src/due/html.py @@ -7,18 +7,18 @@ import math def anime_to_html(releasing_outdated_anime): current_html = "", len(titles)) + return (current_html + "", len(ids)) def manga_to_html(releasing_outdated_manga): @@ -44,13 +44,13 @@ def manga_to_html(releasing_outdated_manga): def process(media): manga = media["media"] title = manga["title"]["english"] + id = manga["id"] - if manga["id"] in ids: + if id in ids: return else: - ids.append(manga["id"]) + ids.append(id) - id = manga["id"] progress = manga["mediaListEntry"]["progress"] available = ( {"episode": 0} -- cgit v1.2.3