Skip to content

Commit

Permalink
Modified /promo route in netskrafl.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vthorsteinsson committed Jan 25, 2021
1 parent 1a03666 commit d218ee6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netskrafl.py
Original file line number Diff line number Diff line change
Expand Up @@ -2317,7 +2317,7 @@ def promo() -> ResponseType:
""" Return promotional HTML corresponding to a given key (category) """
user = session_user()
if user is None:
return "<p>Notandi er ekki innskráður</p>", 401 # Unauthorized
return "<p>Notandi er ekki innskráður</p>" # Unauthorized
rq = RequestData(request)
key = rq.get("key", "")
VALID_PROMOS = {"friend", "krafla"}
Expand Down

0 comments on commit d218ee6

Please sign in to comment.