Skip to content

Commit

Permalink
bug:fulfiller_email -> profile.email (#7221)
Browse files Browse the repository at this point in the history
  • Loading branch information
thelostone-mc authored Aug 12, 2020
1 parent eeeb09d commit 7e2212c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/marketing/management/commands/bounty_feedback_email.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def handle(self, *args, **options):
accepted_fulfillments = bounty.fulfillments.filter(accepted=True)
if accepted_fulfillments.exists() and bounty.status == 'done':
accepted_fulfillment = accepted_fulfillments.first()
fulfiller_email = accepted_fulfillment.fulfiller_email
fulfiller_email = accepted_fulfillment.profile.email
is_fulfiller_and_funder_same_person = (fulfiller_email == submitter_email)
fulfillment_pks = BountyFulfillment.objects.filter(accepted=True, fulfiller_email=fulfiller_email).values_list('pk', flat=True)
previous_bounties = Bounty.objects.current().filter(idx_status__in=statues, fulfillments__pk__in=fulfillment_pks).exclude(pk=bounty.pk).distinct()
Expand Down

0 comments on commit 7e2212c

Please sign in to comment.