From e2c2e7e6475fa7febc47713c0bc1ec1867c2b807 Mon Sep 17 00:00:00 2001 From: Tom Kralidis Date: Mon, 8 Jan 2024 23:21:22 -0500 Subject: [PATCH] fix --- pywis_pubsub/publish.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pywis_pubsub/publish.py b/pywis_pubsub/publish.py index aa7867f..9e024a5 100644 --- a/pywis_pubsub/publish.py +++ b/pywis_pubsub/publish.py @@ -234,6 +234,10 @@ def publish(ctx, file_, config, url, topic, datetime_, identifier, config = util.yaml_load(config) + datetime_2 = None + start_datetime = None + end_datetime = None + broker = config.get('broker') qos = int(config.get('qos', 1)) @@ -248,10 +252,6 @@ def publish(ctx, file_, config, url, topic, datetime_, identifier, else: topic2 = topic - datetime_2 = None - start_datetime = None - end_datetime = None - if datetime_ is not None: if '/' in datetime_: start, end = datetime_.split('/')