Skip to content

Commit df08b89

Browse files
committed
moving arund in preparation for later changesw
1 parent f013340 commit df08b89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spotbot.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ def run(req):
1111
req_body = req.get_json()
1212
logging.info(f"Received JSON: {req_body}")
1313

14-
content = create_content(req_body)
1514
callsign = req_body.get('callsign')
1615

1716
table = tables.get_table()
1817
entity = tables.query_for_entity(table, callsign)
1918
messageId = None
2019
if is_entity_recent(entity):
2120
messageId = entity['MessageId']
21+
content = create_content(req_body)
2222
messageId = call_target(content, messageId)
2323
tables.upsert_entity(table, callsign, messageId)
2424

0 commit comments

Comments
 (0)