Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -135,8 +135,8 @@ def get_suitable_exercises(workout_type: int, mood: int, soreness: int) -> List[
|
|
| 135 |
state.supabase.table('exerciseai')
|
| 136 |
.select('*')
|
| 137 |
.eq('workout_type', workout_type)
|
| 138 |
-
.contains('suitable_moods', [mood])
|
| 139 |
-
.contains('suitable_soreness', [soreness])
|
| 140 |
.execute()
|
| 141 |
)
|
| 142 |
return [ExerciseResponse(**exercise) for exercise in response.data]
|
|
|
|
| 135 |
state.supabase.table('exerciseai')
|
| 136 |
.select('*')
|
| 137 |
.eq('workout_type', workout_type)
|
| 138 |
+
.contains('suitable_moods', [string(mood)])
|
| 139 |
+
.contains('suitable_soreness', [string(soreness)])
|
| 140 |
.execute()
|
| 141 |
)
|
| 142 |
return [ExerciseResponse(**exercise) for exercise in response.data]
|