Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Jan 9, 2024
1 parent 59f19d6 commit e2c2e7e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pywis_pubsub/publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand All @@ -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('/')
Expand Down

0 comments on commit e2c2e7e

Please sign in to comment.