From c89e8cea90aa0493cbdecce5c4f9a8bd5dce2c17 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Wed, 25 Jun 2025 23:39:41 +0300 Subject: remaining shared-use machine cookie tyimeouts set --- core/utils.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'core/utils.py') diff --git a/core/utils.py b/core/utils.py index 116e517..3dd1089 100644 --- a/core/utils.py +++ b/core/utils.py @@ -80,7 +80,7 @@ except: # Opening of file for writing is going to fail currently, so decide it doesn't matter for now pass -def get_cookie_max_age(request=None): +def get_cookie_max_age(request): """This is where we detect whether the machine the user is using is a shared-use device or a personal device. If it is shared-use, then we set a much shorter cookie timout period. """ @@ -314,8 +314,7 @@ def get_git_string(user): def shared_use_machine(request): """Looks for a cookie which only exists on shared use machines """ - print(f" - shared use cookie check {request}") - + if not request: # temporary while rolling out implementation to all calling functions return False -- cgit v1.2.3