From cf0901798526685f2c04c09dd6a5e5e385be8c50 Mon Sep 17 00:00:00 2001 From: profitroll Date: Tue, 14 Feb 2023 16:26:08 +0100 Subject: [PATCH] TMP: interval changes --- modules/scheduler.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/scheduler.py b/modules/scheduler.py index 678317b..f95f2eb 100644 --- a/modules/scheduler.py +++ b/modules/scheduler.py @@ -8,8 +8,10 @@ from modules.app import app scheduler = AsyncIOScheduler() if configGet("post", "mode"): - for entry in configGet("time", "posting"): - dt_obj = datetime.strptime(entry, "%H:%M") - scheduler.add_job(send_content, "cron", hour=dt_obj.hour, minute=dt_obj.minute, args=[app]) + # for entry in configGet("time", "posting"): + # dt_obj = datetime.strptime(entry, "%H:%M") + # Is only used for debug now! + scheduler.add_job(send_content, "interval", seconds=30, args=[app]) + # scheduler.add_job(send_content, "cron", hour=dt_obj.hour, minute=dt_obj.minute, args=[app]) scheduler.add_job(register_commands, "date", run_date=datetime.now()+timedelta(seconds=10), args=[app]) \ No newline at end of file