Funciona todo OK
This commit is contained in:
@@ -114,8 +114,8 @@ def main():
|
||||
ahora = datetime.datetime.now(TIMEZONE)
|
||||
# el lunes es days=(7 - ahora.weekday())
|
||||
# el viernes es days=(4 - ahora.weekday())
|
||||
proximo_lunes = ahora + datetime.timedelta(days=(4 - ahora.weekday()))
|
||||
proximo_lunes = proximo_lunes.replace(hour=11, minute=25, second=0, microsecond=0)
|
||||
proximo_lunes = ahora + datetime.timedelta(days=(7 - ahora.weekday()))
|
||||
proximo_lunes = proximo_lunes.replace(hour=8, minute=25, second=0, microsecond=0)
|
||||
|
||||
application.job_queue.run_repeating(enviar_mensaje_guardia, interval=datetime.timedelta(weeks=1), first=proximo_lunes)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user