diff options
| author | Fuwn <[email protected]> | 2023-07-25 22:52:56 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-07-25 22:52:56 -0700 |
| commit | 38d5f77173d38384c94f3fe4312e9b708a9145ff (patch) | |
| tree | ef67b933fb2399b807e241f18df9cd6806d57f98 /src/due/routes/index.py | |
| parent | fix(html): keep manga status on shows (diff) | |
| download | old.due.moe-38d5f77173d38384c94f3fe4312e9b708a9145ff.tar.xz old.due.moe-38d5f77173d38384c94f3fe4312e9b708a9145ff.zip | |
feat(index): allow username overridev0.1.3
Diffstat (limited to 'src/due/routes/index.py')
| -rw-r--r-- | src/due/routes/index.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/due/routes/index.py b/src/due/routes/index.py index 9899b5b..408678c 100644 --- a/src/due/routes/index.py +++ b/src/due/routes/index.py @@ -49,7 +49,10 @@ def home(): if request.cookies.get("anilist"): anilist = json.loads(request.cookies.get("anilist")) start = time.time() - (current_anime, name) = create_collection(anilist, "ANIME") + (current_anime, name) = create_collection( + anilist, "ANIME", request.args.get("username") + ) + releasing_anime = [ media for media in current_anime if media["media"]["status"] == "RELEASING" ] @@ -73,7 +76,9 @@ def home(): manga_body = '<a href="/?show_manga">Show manga</a>' if not disable_manga: - (current_manga, _) = create_collection(anilist, "MANGA") + (current_manga, _) = create_collection( + anilist, "MANGA", request.args.get("username") + ) releasing_manga = [ media for media in current_manga |