Skip to content

Commit ed0ee8e

Browse files
committed
fixes geo_map_url commit #8
1 parent 54395c4 commit ed0ee8e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

api/factory/runs.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,12 +248,12 @@ def get_hash_runs(params: HashParams) -> List[Hash]:
248248
hash_data["event_attributes"] = event_attributes
249249

250250
# handle geo_map_url
251-
if post_attr.get("geo_map_url") is None and \
252-
post_attr.get("geo_lat") is not None and post_attr.get("geo_long") is not None:
251+
if hash_data.get("geo_map_url") is None and \
252+
hash_data.get("geo_lat") is not None and hash_data.get("geo_long") is not None:
253253

254254
hash_data["geo_map_url"] = config.app_settings.maps_url_template.format(
255-
lat=post_attr.get("geo_lat"),
256-
long=post_attr.get("geo_long")
255+
lat=hash_data.get("geo_lat"),
256+
long=hash_data.get("geo_long")
257257
)
258258

259259
# parse event data

0 commit comments

Comments
 (0)