diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2025-06-25 23:39:41 +0300 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2025-06-25 23:39:41 +0300 |
commit | c89e8cea90aa0493cbdecce5c4f9a8bd5dce2c17 (patch) | |
tree | 10dcbbea7a3a3a86513e8e54d0dc2547917de0ee /core/utils.py | |
parent | c29548db0134d85af56b822dac52502a39d69119 (diff) | |
download | troggle-c89e8cea90aa0493cbdecce5c4f9a8bd5dce2c17.tar.gz troggle-c89e8cea90aa0493cbdecce5c4f9a8bd5dce2c17.tar.bz2 troggle-c89e8cea90aa0493cbdecce5c4f9a8bd5dce2c17.zip |
remaining shared-use machine cookie tyimeouts set
Diffstat (limited to 'core/utils.py')
-rw-r--r-- | core/utils.py | 5 |
1 files changed, 2 insertions, 3 deletions
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 |