Update app.py
Browse files
app.py
CHANGED
|
@@ -160,8 +160,11 @@ def get_recipes_paged(
|
|
| 160 |
|
| 161 |
response = query.execute()
|
| 162 |
|
|
|
|
|
|
|
|
|
|
| 163 |
return {
|
| 164 |
-
"rows":
|
| 165 |
"offset": offset,
|
| 166 |
"limit": limit,
|
| 167 |
"total_count": total_count
|
|
|
|
| 160 |
|
| 161 |
response = query.execute()
|
| 162 |
|
| 163 |
+
raw_data = query.data # This is a list of recipe dicts
|
| 164 |
+
wrapped_data = [{"row": recipe} for recipe in raw_data]
|
| 165 |
+
|
| 166 |
return {
|
| 167 |
+
"rows": wrapped_data,
|
| 168 |
"offset": offset,
|
| 169 |
"limit": limit,
|
| 170 |
"total_count": total_count
|