Skip to content

Commit

Permalink
Fix place_id bug referenced below
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel-PeakMetrics committed Jul 15, 2024
1 parent afef1fa commit adc4b24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion searchtweets/result_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def expand_payload(payload):
poll_id = payload["poll_ids"][-1] # always 1, only 1 poll per tweet.
payload["poll"] = includes_polls[poll_id]

if "geo" in payload:
if "geo" in payload and "place_id" in payload["geo"]:
place_id = payload["geo"]['place_id']
payload["geo"] = merge_dicts(payload["geo"], includes_places[place_id])

Expand Down

0 comments on commit adc4b24

Please sign in to comment.