mirror of
https://github.com/RoboSats/robosats.git
synced 2025-02-21 12:49:02 +00:00
Merge pull request #1497 from RoboSats/avoid-duplicated-notifications
Some checks failed
Lint: Python Coordinator / Run linters (push) Has been cancelled
Some checks failed
Lint: Python Coordinator / Run linters (push) Has been cancelled
Avoid duplicated notifications
This commit is contained in:
commit
b2ff14151b
@ -350,7 +350,8 @@ class Order(models.Model):
|
||||
self.log(
|
||||
f"Order state went from {old_status}: <i>{Order.Status(old_status).label}</i> to {new_status}: <i>{Order.Status(new_status).label}</i>"
|
||||
)
|
||||
send_status_notification.delay(order_id=self.id, status=self.status)
|
||||
if old_status != new_status:
|
||||
send_status_notification.delay(order_id=self.id, status=self.status)
|
||||
|
||||
|
||||
@receiver(pre_delete, sender=Order)
|
||||
|
Loading…
Reference in New Issue
Block a user