aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/due/routes/index.py11
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__)
-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)