I think it's right to move the logic into the else: https://github.com/Gluejar/regluit/pull/202#discussion_r6059064

pull/1/head
Raymond Yee 2013-08-29 06:29:45 -07:00
parent 4e161bebe6
commit 646c8f09e3
1 changed files with 4 additions and 3 deletions

View File

@ -187,9 +187,10 @@ def handle_transaction_charged(sender,transaction=None, **kwargs):
new_acq = Acq.objects.create(user=transaction.user,work=transaction.campaign.work,license= transaction.offer.license)
transaction.campaign.update_left()
notification.send([transaction.user], "purchase_complete", {'transaction':transaction}, True)
from regluit.core.tasks import emit_notifications, watermark_acq
watermark_acq(new_acq).delay()
emit_notifications.delay()
from regluit.core.tasks import emit_notifications, watermark_acq
watermark_acq(new_acq).delay()
emit_notifications.delay()
transaction_charged.connect(handle_transaction_charged)