Skip to content
Snippets Groups Projects
Commit 7759c82f authored by Frederic Aust's avatar Frederic Aust
Browse files

bugfix added lost import for date.today().day

parent 3a002220
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@ import json
import logging
import random
import time
from datetime import date
from threading import Thread
import paho.mqtt.client as mqtt # EPL V1.0
......@@ -423,11 +424,13 @@ def mqtt_client():
def send_heartbeat():
send("Still alive - there will be 🎂", CONFIG["GROUPS"]["Testung"])
for group in GROUPS:
if group["NAME"] == "Testung":
send("Still alive - there will be 🎂", group["ID"])
def init_schedule_jobs():
schedule.every().day.at("18:00").do(run_threaded, send_heartbeat)
schedule.every().day.at("19:00").do(run_threaded, send_heartbeat)
schedule.every().monday.at("06:00").do(run_threaded, gn.update_db)
schedule.every().hour.do(run_threaded, games.auto_newsletter)
schedule.every().day.at("00:01").do(run_threaded, birthday_reminder.check_for_birthdays)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment