Skip to content

Commit

Permalink
delete one None
Browse files Browse the repository at this point in the history
  • Loading branch information
nikodemas committed Oct 19, 2023
1 parent 74a04c7 commit 4ce894f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/CMSMonitoring/amq_sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def send_to_amq(data, confs, batch_size, topic=None, doc_type=None, overwrite_me
)
messages = []
for msg in chunk:
ts = None if not overwrite_meta_ts else msg.get('timestamp', None)
ts = None if not overwrite_meta_ts else msg.get("timestamp")
notif, _, _ = stomp_amq.make_notification(
payload=msg, doc_type=doc_type, producer=producer, ts=ts
)
Expand Down

0 comments on commit 4ce894f

Please sign in to comment.