From 60752e1a4b39e3e53cc0d25bac0178f16092c97f Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Sat, 1 Oct 2022 09:14:42 +0200 Subject: [PATCH] Mostly cleanups and a TODO update. --- TODO.txt | 3 ++- bin/linspector | 2 +- linspector/core/linspector.py | 6 ------ 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/TODO.txt b/TODO.txt index 58676f4..b45e1c8 100644 --- a/TODO.txt +++ b/TODO.txt @@ -11,4 +11,5 @@ Things to do in no particular order: - Add more tasks e.g. storage in mongodb or mariadb and some more notifications like XMPP and SMS - Check for all required configuration options and set defaults in services. - Write documentation and inline documentation. -- Add kwargs ro notifications, tasks and maybe plugins. +- Add kwargs to notifications, tasks and maybe plugins. +- Add date and cron based scheduling to linspector.py to make the full use of APScheduler. diff --git a/bin/linspector b/bin/linspector index 340d9a2..cdab530 100755 --- a/bin/linspector +++ b/bin/linspector @@ -34,7 +34,7 @@ from linspector.core.monitors import Monitors # i currently only set the 3rd number because the goal is that 0.19 will become the first stable # version. -__version__ = '0.19.15.dev1' +__version__ = '0.19.16.dev1' __author__ = 'Johannes Findeisen ' logger = logging.getLogger('linspector') diff --git a/linspector/core/linspector.py b/linspector/core/linspector.py index 4d1e634..f482936 100644 --- a/linspector/core/linspector.py +++ b/linspector/core/linspector.py @@ -15,7 +15,6 @@ from linspector.core.helpers import log def job_function(monitor): - #log('debug', monitor) monitor.handle_call() @@ -70,11 +69,6 @@ class Linspector: else: time_delta = round(random.uniform(0.00, 60.00), 2) - #x = monitors.get(monitor).get_monitor_configuration_option('args', 'start_date') - #y = x.get_monitor_configuration_option('args', 'start_date') - #z = y.get_option('args', 'start_date') - #a = - #print(x) if monitors.get(monitor).get_monitor_configuration_option('args', 'start_date'): new_start_date = \ monitors.get(monitor).get_monitor_configuration_option('args', 'start_date')