bugfixing time
This commit is contained in:
parent
de5357c7c5
commit
8d03ab6451
@ -174,7 +174,7 @@ def run_cron_options_flow():
|
|||||||
week = datetime.today().weekday()
|
week = datetime.today().weekday()
|
||||||
current_time = datetime.now().time()
|
current_time = datetime.now().time()
|
||||||
start_time = datetime_time(15, 30)
|
start_time = datetime_time(15, 30)
|
||||||
end_time = datetime_time(15, 30)
|
end_time = datetime_time(22, 30)
|
||||||
|
|
||||||
if week <= 4 and start_time <= current_time < end_time:
|
if week <= 4 and start_time <= current_time < end_time:
|
||||||
run_command(["python3", "cron_options_flow.py"])
|
run_command(["python3", "cron_options_flow.py"])
|
||||||
@ -191,7 +191,7 @@ def run_cron_options_zero_dte():
|
|||||||
week = datetime.today().weekday()
|
week = datetime.today().weekday()
|
||||||
current_time = datetime.now().time()
|
current_time = datetime.now().time()
|
||||||
start_time = datetime_time(15, 30)
|
start_time = datetime_time(15, 30)
|
||||||
end_time = datetime_time(15, 30)
|
end_time = datetime_time(22, 30)
|
||||||
if week <= 4 and start_time <= current_time < end_time:
|
if week <= 4 and start_time <= current_time < end_time:
|
||||||
run_command(["python3", "cron_options_zero_dte.py"])
|
run_command(["python3", "cron_options_zero_dte.py"])
|
||||||
command = [
|
command = [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user