Skip to content

Commit

Permalink
correction de la recuperation des Datasets en scope 1 ou 2
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrieuclp committed Mar 13, 2024
1 parent 45fec53 commit cd7f52f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def filter_query_with_cruved(self, user, scope):
self.model_id_syn_col.in_(subquery_observers),
self.model_id_digitiser_column == user.id_role,
]
datasets = DB.session.scalars(TDatasets.filter_by_scope(scope)).all()
datasets = DB.session.scalars(TDatasets.filter_by_scope(scope)).unique().all()
allowed_datasets = [dataset.id_dataset for dataset in datasets]
ors_filters.append(self.model_id_dataset_column.in_(allowed_datasets))

Expand Down

0 comments on commit cd7f52f

Please sign in to comment.