Skip to content

Commit

Permalink
fix: Added distinct for landscapes query
Browse files Browse the repository at this point in the history
  • Loading branch information
josebui committed Nov 1, 2023
1 parent 35bb645 commit 7628137
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions terraso_backend/apps/graphql/schema/landscapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ def get_queryset(cls, queryset, info):
)
)
.all()
.distinct()
)
except Exception as e:
logger.exception("Error prefetching Landscape data", error=e)
Expand Down

0 comments on commit 7628137

Please sign in to comment.