mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2026-05-22 19:26:05 +01:00
tidy default if cookie has expired
This commit is contained in:
+1
-1
@@ -205,7 +205,7 @@ def parse_aliases(aliasfile):
|
|||||||
return aliases, report
|
return aliases, report
|
||||||
|
|
||||||
def get_cookie(request):
|
def get_cookie(request):
|
||||||
NO_COOKIE_DEFAULT = 'Höhlenforscher <hohlenforscher@stonebridge.expo>'
|
NO_COOKIE_DEFAULT = 'Unset Cookie <hohlenforscher@potatohut.expo>'
|
||||||
print(f"-- Getting cookie...")
|
print(f"-- Getting cookie...")
|
||||||
editor_id = request.COOKIES.get('editor_id', NO_COOKIE_DEFAULT) # if no cookie, then default string
|
editor_id = request.COOKIES.get('editor_id', NO_COOKIE_DEFAULT) # if no cookie, then default string
|
||||||
editor = git_string(editor_id) # belt and braces, should have been validity checked on saving already
|
editor = git_string(editor_id) # belt and braces, should have been validity checked on saving already
|
||||||
|
|||||||
Reference in New Issue
Block a user