Skip to content

Commit

Permalink
add TODO for source_location
Browse files Browse the repository at this point in the history
  • Loading branch information
jchate6 committed Jan 11, 2023
1 parent 26ca592 commit 2a13bf8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tom_dataproducts/alertstreams/hermes.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ def hermes_alert_handler(alert, metadata):
"""
# logger.info(f'Alert received on topic {metadata.topic}: {alert}; metatdata: {metadata}')
alert_as_dict = alert.content
print(alert_as_dict)
photometry_table = alert_as_dict['data'].get('photometry', None)
if photometry_table:
hermes_alert = AlertStreamMessage(topic=alert_as_dict['topic'], exchange_status='ingested')
Expand All @@ -134,7 +133,7 @@ def hermes_alert_handler(alert, metadata):
'target': target,
'data_type': 'photometry',
'source_name': alert_as_dict['topic'],
'source_location': 'HERMES',
'source_location': 'Hermes via HOP', # TODO Add message URL here once message ID's exist
'timestamp': obs_date,
'value': get_hermes_phot_value(row)
}
Expand Down

0 comments on commit 2a13bf8

Please sign in to comment.