diff options
| author | Fuwn <[email protected]> | 2023-07-27 19:53:16 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-07-27 19:53:16 -0700 |
| commit | eb76fd2e8a7207b7a41288ed7231177d6c7a7b1e (patch) | |
| tree | e336e3c1c74a566c2fa857500564ff85f4bb1d08 | |
| parent | fix(html): no progress entry media (diff) | |
| download | old.due.moe-0.1.5.tar.xz old.due.moe-0.1.5.zip | |
fix(index): 0 progres manga entryv0.1.5
| -rw-r--r-- | src/due/routes/index.py | 4 |
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( |