Skip to content

Commit

Permalink
fixed team oc and sfi duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
aldo committed Nov 20, 2024
1 parent 92a47d0 commit 5996a36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BackEndFlask/models/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -1051,8 +1051,8 @@ def get_csv_categories(rubric_id: int, user_id: int, team_id: int, at_id: int, c
if team_id is not None : ocs_sfis_query[i].filter(CompletedAssessment.team_id == team_id)

# Executing the query
ocs = ocs_sfis_query[0].all()
sfis = ocs_sfis_query[1].all()
ocs = ocs_sfis_query[0].distinct(ObservableCharacteristic.observable_characteristics_id).all()
sfis = ocs_sfis_query[1].distinct(SuggestionsForImprovement.suggestion_id).all()

return ocs,sfis

Expand Down

0 comments on commit 5996a36

Please sign in to comment.