API & Client - fix workouts filters on distance when value is a float

This commit is contained in:
Sam
2021-11-11 08:57:10 +01:00
parent 7a7cd509ed
commit eef66cb735
14 changed files with 36 additions and 30 deletions

View File

@ -713,7 +713,7 @@ class TestGetWorkoutsWithFilters(ApiTestCaseMixin):
client, auth_token = self.get_test_client_and_auth_token(app)
response = client.get(
'/api/workouts?distance_from=5&distance_to=8',
'/api/workouts?distance_from=5&distance_to=8.1',
headers=dict(Authorization=f'Bearer {auth_token}'),
)