Skip to content

Commit

Permalink
Update cache key prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Jun 12, 2024
1 parent 654b60f commit 340d972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/cache_key_prefix.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

def cache_key_prefix():
"""Make a key that includes GET parameters."""
return f"{request.full_path}{request.cookies.get('cookie_preferences_set')}{request.cookies.get('theme')}"
return f"{request.full_path}{request.cookies.get('cookie_preferences_set' or '')}{request.cookies.get('theme' or '')}"

0 comments on commit 340d972

Please sign in to comment.