From 5996a36e5574f4b8167d8d782026335f17e6ec98 Mon Sep 17 00:00:00 2001 From: aldo Date: Wed, 20 Nov 2024 12:16:55 -0600 Subject: [PATCH] fixed team oc and sfi duplication --- BackEndFlask/models/queries.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BackEndFlask/models/queries.py b/BackEndFlask/models/queries.py index 0c245848a..f66838a7b 100644 --- a/BackEndFlask/models/queries.py +++ b/BackEndFlask/models/queries.py @@ -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