Skip to content

Commit

Permalink
Remove last remnant of default to main
Browse files Browse the repository at this point in the history
  • Loading branch information
ericthelemur committed Mar 5, 2023
1 parent 5807657 commit 8588a91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions progcomp/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ def get_progcomp_list():
@bp.route("/")
def menu() -> FlaskResponse:
pc = get_pc()
username = session.get(USERNAME_SESSION_KEY, "main")
if not pc and username:
username = session.get(USERNAME_SESSION_KEY)
if (not pc) and username:
return redirect(url_for("progcomp.logout"))
partitions = get_progcomp_list()
return render_template(
Expand Down

0 comments on commit 8588a91

Please sign in to comment.