Skip to content

Commit

Permalink
Merge pull request #12 from tblanarik/tblanarik/fix-get-msg-id
Browse files Browse the repository at this point in the history
MessageId is an element of entity, not metadata
  • Loading branch information
tblanarik authored Sep 23, 2024
2 parents d08092a + 4b06a77 commit b7e746a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion function_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def spotbot(req: func.HttpRequest) -> func.HttpResponse:
entity = query_for_entity(table, callsign)
messageId = None
if is_entity_recent(entity):
messageId = entity.metadata['MessageId']
messageId = entity['MessageId']
response = call_target(content, messageId)
messageId = extract_message_id(response)
upsert_entity(table, callsign, messageId)
Expand Down

0 comments on commit b7e746a

Please sign in to comment.