Fix payments_cleansin for onchain payments with no order key

This commit is contained in:
Reckless_Satoshi 2022-07-24 04:29:13 -07:00
parent 7b75973eba
commit 040fc3e679
No known key found for this signature in database
GPG Key ID: 9C4585B561315571

View File

@ -203,7 +203,7 @@ def payments_cleansing():
# same for onchain payments # same for onchain payments
queryset = OnchainPayment.objects.filter(Q(status__in=[OnchainPayment.Status.CANCE, OnchainPayment.Status.CREAT]), queryset = OnchainPayment.objects.filter(Q(status__in=[OnchainPayment.Status.CANCE, OnchainPayment.Status.CREAT]),
Q(order_paid_TX__expires_at__lt=finished_time)) Q(order_paid_TX__expires_at__lt=finished_time)|Q(order_paid_TX__isnull=True))
# And do not have an active trade, any past contract or any reward. # And do not have an active trade, any past contract or any reward.
deleted_onchainpayments = [] deleted_onchainpayments = []