Skip to content

Commit

Permalink
fix multiepisode strategy report bug (#719)
Browse files Browse the repository at this point in the history
  • Loading branch information
acrantel authored Jan 10, 2024
1 parent 6b340cc commit 0ec0260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/siarnaq/api/teams/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def compute(self, request, pk=None, episode_id=None):
)
def report(self, request, pk=None, *, episode_id):
"""Retrieve or update team strategy report"""
team = Team.objects.filter(members=request.user).get()
team = Team.objects.filter(episode=episode_id, members=request.user).get()
profile = team.profile
match request.method.lower():
case "get":
Expand Down

0 comments on commit 0ec0260

Please sign in to comment.