From 4a01036ab538d49184c68ed5405313034607b51d Mon Sep 17 00:00:00 2001 From: PCoder Date: Sat, 13 Apr 2019 14:34:17 +0200 Subject: [PATCH] Attempt correction to gt dict to be passed for created greater than --- hosting/management/commands/fetch_stripe_bills.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosting/management/commands/fetch_stripe_bills.py b/hosting/management/commands/fetch_stripe_bills.py index e321179d..2baaa921 100644 --- a/hosting/management/commands/fetch_stripe_bills.py +++ b/hosting/management/commands/fetch_stripe_bills.py @@ -31,7 +31,7 @@ class Command(BaseCommand): # fetch only invoices which is created after # mhb.created, because we already have invoices till # this date - created_gt = {'gt': int(mhb.created.timestamp())} + created_gt = {'created': {'gt': int(mhb.created.timestamp())}} all_invoices_response = stripe_utils.get_all_invoices( user.stripecustomer.stripe_id,