Skip to content

Commit

Permalink
chore: correct query in StudyMetadataRepository.list_duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
laurent-laporte-pro committed Mar 5, 2024
1 parent cd9c4e0 commit cf5d66b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion antarest/study/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,5 +406,5 @@ def list_duplicates(self) -> t.List[t.Tuple[str, str]]:
"""
session = self.session
subquery = session.query(Study.path).group_by(Study.path).having(func.count() > 1).subquery()
query = session.query(Study.id, Study.path).filter(Study.path.in_(subquery))
query = session.query(Study.id, Study.path).filter(Study.path.in_(subquery.as_scalar()))
return t.cast(t.List[t.Tuple[str, str]], query.all())

0 comments on commit cf5d66b

Please sign in to comment.