diff --git a/project/app/views.py b/project/app/views.py index 1d25805..974bd42 100644 --- a/project/app/views.py +++ b/project/app/views.py @@ -104,14 +104,12 @@ def get_account_by_summoner_name(request: WSGIRequest): def recommend_ai(request: WSGIRequest): user: AppUser = request.user - if not user.riot_account: + if not request.user.is_anonymous: return render( request, "recommend/ai.html", { "user": user, - "riot_account": None, - "riot_summoner": None, }, )