From 2685f36e01d82fc2d22a100ea1f22ef896b4740d Mon Sep 17 00:00:00 2001 From: nikita Date: Fri, 23 Nov 2018 12:29:19 +0300 Subject: [PATCH] command fixes --- .../management/commands/send_transactions_to_roistat.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/payment/management/commands/send_transactions_to_roistat.py b/apps/payment/management/commands/send_transactions_to_roistat.py index cd5ab662..15a50e38 100644 --- a/apps/payment/management/commands/send_transactions_to_roistat.py +++ b/apps/payment/management/commands/send_transactions_to_roistat.py @@ -20,9 +20,11 @@ class Command(BaseCommand): def handle(self, *args, **options): start_id = options.get('start_id') + print('start_id=' + str(start_id)) + payments = Payment.objects.filter(id__gte=start_id, status__in=Payment.PW_PAID_STATUSES) for payment in payments: - logger.info('TRANSACTION: ' + str(payment.id)) + print('TRANSACTION: ' + str(payment.id)) transaction_to_roistat( payment.user.id,