diff options
| author | Fuwn <[email protected]> | 2023-07-27 22:53:15 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-07-27 22:53:15 -0700 |
| commit | b90b1b8b139b1cfdbfae0883ab3434bbf86965d9 (patch) | |
| tree | 205ed405f9527f4b82711d17403e6bfc200c6c4c | |
| parent | fix(index): 0 progres manga entry (diff) | |
| download | old.due.moe-b90b1b8b139b1cfdbfae0883ab3434bbf86965d9.tar.xz old.due.moe-b90b1b8b139b1cfdbfae0883ab3434bbf86965d9.zip | |
feat(index): username route
| -rw-r--r-- | src/due/routes/index.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/due/routes/index.py b/src/due/routes/index.py index df1b6da..49f5acc 100644 --- a/src/due/routes/index.py +++ b/src/due/routes/index.py @@ -9,8 +9,13 @@ import datetime bp = Blueprint("index", __name__) [email protected]("/") -def home(): [email protected]("/<username>") +def user(username): + return home(username) + + [email protected]("/", defaults={"username": None}) +def home(username): response = make_response("") disable_manga = True @@ -59,7 +64,7 @@ def home(): start = time.time() (current_anime, name) = create_collection( - anilist, "ANIME", request.args.get("username") + anilist, "ANIME", request.args.get("username") or username ) print(name) |