You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Requesting exercise via API returns result of all exercises of an exam instead of returning only the result of the exercise requested with its unique id
#157
Open
niels-beier opened this issue
Mar 17, 2022
· 2 comments
Can confirm the issue! Unfortunately due to a problem with my development setup I currently am not able to fix the issue.
If you want to, you can have a look at the code:
I think this happens because the exercise_points are only filtered by the id of the user. Since all exercises of the exam should have entries for the given user and its ID all exercises are filtered out.
I think a fix would be to add another filter like this:
If you request an exercise via the API (https://muesli.mathi.uni-heidelberg.de/api/v1/exercises/"exercise-id"/"user-id"/) you get a list of all exercise results of an exam instead of only getting the exercise results of the exercise with its unique id mentioned in the request url.
The text was updated successfully, but these errors were encountered: