configuration de porte

This commit is contained in:
2022-04-17 16:37:47 +02:00
parent 401f20eb09
commit e95d174a1f
5 changed files with 49 additions and 39 deletions
+8 -8
View File
@@ -6,20 +6,20 @@ from wait_for_sms import start_waiting_sms
def waiting_for_sms_job():
start_waiting_sms()
start_waiting_sms(1, 31)
def start_book_appointment():
start_book()
start_book(1, 31)
def start_waiting_sms_job(sched):
sched.add_job(start_book_appointment, 'cron', day_of_week='mon-sat', hour='10',
minute='30',
misfire_grace_time=10,
second='0', timezone='Europe/Paris', max_instances=1)
sched.add_job(waiting_for_sms_job, 'cron', day_of_week='mon-sat', hour='20',
minute='30',
# sched.add_job(start_book_appointment, 'cron', day_of_week='mon-sat', hour='10',
# minute='30',
# misfire_grace_time=10,
# second='0', timezone='Europe/Paris', max_instances=1)
sched.add_job(waiting_for_sms_job, 'cron', day_of_week='mon-sat', hour='21',
minute='00',
misfire_grace_time=10,
second='0', timezone='Europe/Paris', max_instances=1)