wger icon indicating copy to clipboard operation
wger copied to clipboard

Language filtering for "exerciseinfo" isn't working

Open Dalton123 opened this issue 3 years ago • 6 comments

Language filtering for "exerciseinfo" isn't working

Hi i'm trying to play around with this API and from what I can tell, you should be able to filter by language using the ?language= query like so https://wger.de/api/v2/exerciseinfo/?language=2. However this doesn't seem to be working, specifically for the exerciseinfo endpoint.

Currently, it just spits out all different languages, not just English like I'm after.

Any ideas?

Dalton123 avatar Sep 07 '22 19:09 Dalton123

mhh, you are right

We need to manually add the filter method to ExerciseInfoViewset that we added to ExerciseViewSet

rolandgeider avatar Sep 07 '22 20:09 rolandgeider

mhh, you are right

We need to manually add the filter method to ExerciseInfoViewset that we added to ExerciseViewSet

Is there anything I can do in the meantime? Or do I just need to wait for it to be fixed? I'm just looking to pull all the different exercises with the information about them (with pics if available etc) in English.

Dalton123 avatar Sep 08 '22 08:09 Dalton123

besides filtering on your side, not much :)

rolandgeider avatar Sep 08 '22 08:09 rolandgeider

And FYI, we're very close to releasing an updated version of the exercise db where a lot of the exercises have been cleaned up and (some) will even have videos

rolandgeider avatar Sep 08 '22 08:09 rolandgeider

Ahh that's cool! I look forward to it! In the meantime, I'll just filter manually since I'm just using this for practice. Thank you!

Dalton123 avatar Sep 08 '22 09:09 Dalton123

Any update on this guys? Still not working as intent

rafelis1997 avatar Nov 30 '22 23:11 rafelis1997