Lower case

main
Bob Mottram 2024-02-11 18:09:08 +00:00
parent b638d9623d
commit 846945832f
1 changed files with 2 additions and 2 deletions

View File

@ -1569,7 +1569,7 @@ def set_broch_mode(base_dir: str, domain_full: str, enabled: bool) -> None:
set_config_param(base_dir, "brochMode", enabled) set_config_param(base_dir, "brochMode", enabled)
def broch_modeLapses(base_dir: str, lapseDays: int) -> bool: def broch_modeLapses(base_dir: str, lapse_days: int) -> bool:
"""After broch mode is enabled it automatically """After broch mode is enabled it automatically
elapses after a period of time elapses after a period of time
""" """
@ -1584,7 +1584,7 @@ def broch_modeLapses(base_dir: str, lapseDays: int) -> bool:
return False return False
curr_time = date_utcnow() curr_time = date_utcnow()
days_since_broch = (curr_time - modified_date).days days_since_broch = (curr_time - modified_date).days
if days_since_broch >= lapseDays: if days_since_broch >= lapse_days:
removed = False removed = False
try: try:
os.remove(allow_filename) os.remove(allow_filename)