mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2026-03-27 18:51:48 +00:00
extend cookie timeout to 2 years
This commit is contained in:
@@ -43,7 +43,7 @@ Read this now: https://nerderati.com/a-python-epoch-timestamp-timezone-trap/
|
||||
TROG = {"pagecache": {"expedition": {}}, "caves": {"gcavelookup": {}, "gcavecount": {}}}
|
||||
alphabet = []
|
||||
sha = hashlib.new('sha256')
|
||||
COOKIE_MAX_AGE = 12*60*60 # seconds
|
||||
COOKIE_MAX_AGE = 2*365*24*60*60 # seconds
|
||||
throw = 35.0
|
||||
|
||||
EXPOSERVER = "expo" # hostname of the server at expo.survex.com
|
||||
@@ -303,8 +303,10 @@ def git_commit(cwd, message, editor, commands=[]):
|
||||
return commands
|
||||
|
||||
def add_commit(fname, message, editor):
|
||||
"""Used to commit a survex file edited and saved in view/survex.py
|
||||
and also contents.json for an edited wallet"""
|
||||
"""Used to commit a survex file edited and saved in view/survex.py,
|
||||
also contents.json for an edited wallet,
|
||||
also encrypted.json for an edited user registration
|
||||
"""
|
||||
cwd = fname.parent
|
||||
filename = fname.name
|
||||
commands = []
|
||||
@@ -312,7 +314,7 @@ def add_commit(fname, message, editor):
|
||||
if editor:
|
||||
editor = git_string(editor)
|
||||
else:
|
||||
# 'cannot happen' as form verification has this as an obligatory field
|
||||
# 'cannot happen' as form verification has this is an obligatory field
|
||||
editor = "Anathema Device <a.device@potatohut.expo>"
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user