Skip to content

Fix KeyError when accessing feed, stats, games, and chat without logging in #53

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
IsaacCheng9 opened this issue Jan 8, 2022 · 0 comments
Labels
bug Something isn't working high priority This needs immediate attention

Comments

@IsaacCheng9
Copy link
Owner

Problem Statement

  • When accessing feed, stats (leaderboard, achievements), games (quizzes, flashcards), or chat without logging in, a KeyError: 'username' occurs.
    • This can be fixed by implementing the @login_required annotation with Flask, and hiding these items from the navigation bar when the user isn't logged in.
      • It may be better to hide the navigation bar entirely when the user isn't logged in.
@IsaacCheng9 IsaacCheng9 added bug Something isn't working high priority This needs immediate attention labels Jan 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high priority This needs immediate attention
Projects
None yet
Development

No branches or pull requests

1 participant