upd
This commit is contained in:
parent
9a4be640d1
commit
94113e3025
@ -49,9 +49,10 @@ if __name__ == "__main__":
|
||||
bot.send_weather(WeatherTask('shkolniy', "{0}".format(shkolniy_weather)))
|
||||
|
||||
def scheduled():
|
||||
schedule = Scheduler()
|
||||
schedule = Scheduler(tzinfo=tz_msk)
|
||||
# schedule.cyclic(dt.timedelta(seconds=10), shkolniy_weather_job)
|
||||
schedule.daily(dt.time(hour=9, minute=0, tzinfo=tz_msk), shkolniy_weather_job)
|
||||
schedule.daily(dt.time(hour=9, minute=15, tzinfo=tz_msk), shkolniy_weather_job)
|
||||
logger.info(schedule)
|
||||
while True:
|
||||
schedule.exec_jobs()
|
||||
time.sleep(1)
|
||||
|
Loading…
Reference in New Issue
Block a user