Skip to content

Commit

Permalink
fix date comparison for subscriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
aSauerwein committed Jun 23, 2024
1 parent 8cdb94c commit b9b0cd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion download_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ def save_subscription_invoice(subscription_invoices, desired_invoice_date, vin):
INVOICE_PATH.mkdir(parents=True, exist_ok=True)

for invoice in subscription_invoices:
invoice_datetime = datetime.fromisoformat(subscription_invoices[0]["InvoiceDate"])
invoice_datetime = datetime.fromisoformat(invoice["InvoiceDate"])

# check for desired invoice date
if desired_invoice_date.year == 1999:
Expand Down

0 comments on commit b9b0cd5

Please sign in to comment.