Link
Browse files
app.py
CHANGED
@@ -34,6 +34,7 @@ class SimplifiedOuting:
|
|
34 |
equipment_rating: Optional[str]
|
35 |
rock_free_rating: Optional[str]
|
36 |
area_titles: List[str]
|
|
|
37 |
|
38 |
|
39 |
def simplify_outings_response(
|
@@ -70,7 +71,8 @@ def simplify_outings_response(
|
|
70 |
global_rating=doc.get("global_rating"),
|
71 |
equipment_rating=doc.get("equipment_rating"),
|
72 |
rock_free_rating=doc.get("rock_free_rating"),
|
73 |
-
area_titles=area_titles
|
|
|
74 |
))
|
75 |
return results
|
76 |
|
|
|
34 |
equipment_rating: Optional[str]
|
35 |
rock_free_rating: Optional[str]
|
36 |
area_titles: List[str]
|
37 |
+
link: str
|
38 |
|
39 |
|
40 |
def simplify_outings_response(
|
|
|
71 |
global_rating=doc.get("global_rating"),
|
72 |
equipment_rating=doc.get("equipment_rating"),
|
73 |
rock_free_rating=doc.get("rock_free_rating"),
|
74 |
+
area_titles=area_titles,
|
75 |
+
link=f"https://www.camptocamp.org/outings/{doc.get('document_id')}"
|
76 |
))
|
77 |
return results
|
78 |
|