Skip to content

Commit

Permalink
moving arund in preparation for later changesw
Browse files Browse the repository at this point in the history
  • Loading branch information
tblanarik committed Sep 28, 2024
1 parent f013340 commit df08b89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spotbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ def run(req):
req_body = req.get_json()
logging.info(f"Received JSON: {req_body}")

content = create_content(req_body)
callsign = req_body.get('callsign')

table = tables.get_table()
entity = tables.query_for_entity(table, callsign)
messageId = None
if is_entity_recent(entity):
messageId = entity['MessageId']
content = create_content(req_body)
messageId = call_target(content, messageId)
tables.upsert_entity(table, callsign, messageId)

Expand Down

0 comments on commit df08b89

Please sign in to comment.