Skip to content

Commit

Permalink
added like exclusion if the like id__in is the same aas the group the…
Browse files Browse the repository at this point in the history
… user is in
  • Loading branch information
MartinOravecSvK committed Apr 24, 2023
1 parent ef36fba commit da1bc8e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions api/views/swipe_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ def list_likes(self, request):
id__in=current_matches_ids
).distinct()
likes = likes.union(current_group_likes)
likes = current_profile.likes.exclude(id__in=current_profile.member_group.all()[0].id)

# single profile likes
profile_likes = []
Expand Down
12 changes: 6 additions & 6 deletions service/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,9 @@

DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"

# EMAIL_BACKEND = os.environ["EMAIL_BACKEND"]
# EMAIL_HOST = os.environ["EMAIL_HOST"]
# EMAIL_PORT = os.environ["EMAIL_PORT"]
# EMAIL_HOST_USER = os.environ["EMAIL_HOST_USER"]
# EMAIL_HOST_PASSWORD = os.environ["EMAIL_HOST_PASSWORD"]
# EMAIL_USE_TLS = os.environ["EMAIL_USE_TLS"]
EMAIL_BACKEND = os.environ["EMAIL_BACKEND"]
EMAIL_HOST = os.environ["EMAIL_HOST"]
EMAIL_PORT = os.environ["EMAIL_PORT"]
EMAIL_HOST_USER = os.environ["EMAIL_HOST_USER"]
EMAIL_HOST_PASSWORD = os.environ["EMAIL_HOST_PASSWORD"]
EMAIL_USE_TLS = os.environ["EMAIL_USE_TLS"]

0 comments on commit da1bc8e

Please sign in to comment.