aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-07-27 19:53:16 -0700
committerFuwn <[email protected]>2023-07-27 19:53:16 -0700
commiteb76fd2e8a7207b7a41288ed7231177d6c7a7b1e (patch)
treee336e3c1c74a566c2fa857500564ff85f4bb1d08
parentfix(html): no progress entry media (diff)
downloadold.due.moe-eb76fd2e8a7207b7a41288ed7231177d6c7a7b1e.tar.xz
old.due.moe-eb76fd2e8a7207b7a41288ed7231177d6c7a7b1e.zip
fix(index): 0 progres manga entryv0.1.5
-rw-r--r--src/due/routes/index.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/due/routes/index.py b/src/due/routes/index.py
index a08c498..df1b6da 100644
--- a/src/due/routes/index.py
+++ b/src/due/routes/index.py
@@ -99,7 +99,9 @@ def home():
media
for media in releasing_manga
if media["media"]["type"] == "MANGA"
- and int(media["media"]["mediaListEntry"]["progress"])
+ and int(
+ (media["media"]["mediaListEntry"] or {"progress": 0})["progress"]
+ )
>= 1 # Useful when testing
]
(manga_html, manga_length) = manga_to_html(