Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit 0d29795

Browse files
fix: Convert to timestamp to fix comparison
1 parent 7414d79 commit 0d29795

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/billing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def cancel_and_refund(
185185
invoice
186186
for invoice in invoices_list["data"]
187187
if invoice["status_transitions"]["paid_at"] is not None
188-
and invoice["status_transitions"]["paid_at"] >= invoice_grace_period_start
188+
and invoice["status_transitions"]["paid_at"] >= int(invoice_grace_period_start.timestamp())
189189
]
190190

191191
created_refund = False

0 commit comments

Comments
 (0)