aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2023-02-22 23:57:11 -0800
committerclarkzjw <[email protected]>2023-02-23 12:07:32 -0800
commit5402e3a2e9df24a883e2e20dfae6c92f11b8d499 (patch)
tree0337ca914685d2f52fbe34bf3fb7be89d7aa9721 /callback.py
parent736ba02520802499c9970afd9d1ee6a537fb2230 (diff)
downloadswarm2fediverse-5402e3a2e9df24a883e2e20dfae6c92f11b8d499.tar.gz
bot: change create_poi to create_or_update_poi
Diffstat (limited to 'callback.py')
-rw-r--r--callback.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/callback.py b/callback.py
index aca8a90..23b814b 100644
--- a/callback.py
+++ b/callback.py
@@ -184,6 +184,7 @@ async def _process_location_selection(context: ContextTypes.DEFAULT_TYPE) -> int
184 poi_name = context.user_data.get("poi_name") 184 poi_name = context.user_data.get("poi_name")
185 if context.user_data.get("fsq_id") is not None: 185 if context.user_data.get("fsq_id") is not None:
186 poi = get_poi_by_fsq_id(context.user_data.get("fsq_id")) 186 poi = get_poi_by_fsq_id(context.user_data.get("fsq_id"))
187 poi_name = poi["name"]
187 content = generate_toot_text(poi["name"], poi["locality"], poi["region"], poi["latitude"], poi["longitude"]) 188 content = generate_toot_text(poi["name"], poi["locality"], poi["region"], poi["latitude"], poi["longitude"])
188 else: 189 else:
189 content = generate_toot_text(poi_name, "", "", context.user_data.get("latitude"), context.user_data.get("longitude")) 190 content = generate_toot_text(poi_name, "", "", context.user_data.get("latitude"), context.user_data.get("longitude"))
Powered by cgit v1.2.3 (git 2.41.0)