aboutsummaryrefslogtreecommitdiff
path: root/user_profile/views.py
diff options
context:
space:
mode:
authorBobby <[email protected]>2024-08-26 16:42:30 -0400
committerBobby <[email protected]>2024-08-26 16:42:30 -0400
commit85a456b7d222bdf253a2395c47b1b6ea10ee82e3 (patch)
treedd723305e541d6fcea6afb6a3f4a3d5640b94644 /user_profile/views.py
parent0f719a0394785a59c7dc6a611dac4b88cc03459c (diff)
downloadyugen-85a456b7d222bdf253a2395c47b1b6ea10ee82e3.tar.xz
yugen-85a456b7d222bdf253a2395c47b1b6ea10ee82e3.zip
temp auth on rate limit
Diffstat (limited to 'user_profile/views.py')
-rw-r--r--user_profile/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/user_profile/views.py b/user_profile/views.py
index bc84632..8d62df6 100644
--- a/user_profile/views.py
+++ b/user_profile/views.py
@@ -16,7 +16,7 @@ def user_profile(request):
"req_category": category
}
- if category == "anime_list" and not request.user.mal_access_token:
+ if category == "anime_list" and request.user.mal_access_token and request.user.mal_access_token_expires_at:
mal_auth_uri, code_challenge = get_mal_redirect_uri()
context["mal_auth_uri"] = mal_auth_uri
else: