Funciona todo OK

This commit is contained in:
2025-01-24 12:08:46 +01:00
parent a58c49a3fb
commit f201b83463
+2 -2
View File
@@ -114,8 +114,8 @@ def main():
ahora = datetime.datetime.now(TIMEZONE) ahora = datetime.datetime.now(TIMEZONE)
# el lunes es days=(7 - ahora.weekday()) # el lunes es days=(7 - ahora.weekday())
# el viernes es days=(4 - ahora.weekday()) # el viernes es days=(4 - ahora.weekday())
proximo_lunes = ahora + datetime.timedelta(days=(4 - ahora.weekday())) proximo_lunes = ahora + datetime.timedelta(days=(7 - ahora.weekday()))
proximo_lunes = proximo_lunes.replace(hour=11, minute=25, second=0, microsecond=0) 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) application.job_queue.run_repeating(enviar_mensaje_guardia, interval=datetime.timedelta(weeks=1), first=proximo_lunes)