merge-requests/30/head
Bob Mottram 2021-06-05 14:42:18 +01:00
parent dd8b9da31c
commit 2dd4ec4854
1 changed files with 1 additions and 3 deletions

View File

@ -701,7 +701,6 @@ def brochModeLapses(baseDir: str, lapseDays=7) -> bool:
return False return False
lastModified = fileLastModified(allowFilename) lastModified = fileLastModified(allowFilename)
modifiedDate = None modifiedDate = None
brochMode = True
try: try:
modifiedDate = \ modifiedDate = \
datetime.strptime(lastModified, "%Y-%m-%dT%H:%M:%SZ") datetime.strptime(lastModified, "%Y-%m-%dT%H:%M:%SZ")
@ -714,8 +713,7 @@ def brochModeLapses(baseDir: str, lapseDays=7) -> bool:
if daysSinceBroch >= lapseDays: if daysSinceBroch >= lapseDays:
try: try:
os.remove(allowFilename) os.remove(allowFilename)
brochMode = False setConfigParam(baseDir, "brochMode", False)
setConfigParam(baseDir, "brochMode", brochMode)
print('Broch mode has elapsed') print('Broch mode has elapsed')
return True return True
except BaseException: except BaseException: