mirror of https://gitlab.com/bashrc2/epicyon
Lower case
parent
b638d9623d
commit
846945832f
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue