|
|
|
@ -20,9 +20,11 @@ class Command(BaseCommand): |
|
|
|
|
|
|
|
|
|
|
|
def handle(self, *args, **options): |
|
|
|
def handle(self, *args, **options): |
|
|
|
start_id = options.get('start_id') |
|
|
|
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) |
|
|
|
payments = Payment.objects.filter(id__gte=start_id, status__in=Payment.PW_PAID_STATUSES) |
|
|
|
for payment in payments: |
|
|
|
for payment in payments: |
|
|
|
logger.info('TRANSACTION: ' + str(payment.id)) |
|
|
|
print('TRANSACTION: ' + str(payment.id)) |
|
|
|
|
|
|
|
|
|
|
|
transaction_to_roistat( |
|
|
|
transaction_to_roistat( |
|
|
|
payment.user.id, |
|
|
|
payment.user.id, |
|
|
|
|