fix
This commit is contained in:
parent
abedd82cf5
commit
7a8b201478
@ -55,7 +55,7 @@ if __name__ == "__main__":
|
|||||||
schedule.cyclic(dt.timedelta(seconds=10), shkolniy_weather_job)
|
schedule.cyclic(dt.timedelta(seconds=10), shkolniy_weather_job)
|
||||||
else:
|
else:
|
||||||
schedule = Scheduler(tzinfo=tz_msk)
|
schedule = Scheduler(tzinfo=tz_msk)
|
||||||
schedule.daily(dt.time(hour=9, minute=5, tzinfo=tz_msk), shkolniy_weather_job)
|
schedule.daily(dt.time(hour=7, minute=5, tzinfo=tz_msk), shkolniy_weather_job)
|
||||||
logger.info(schedule)
|
logger.info(schedule)
|
||||||
while True:
|
while True:
|
||||||
schedule.exec_jobs()
|
schedule.exec_jobs()
|
||||||
|
Loading…
Reference in New Issue
Block a user