Skip to content

Commit

Permalink
πŸ› Fix crash in jzwb export if receipt-date is none
Browse files Browse the repository at this point in the history
  • Loading branch information
pajowu committed Jan 8, 2025
1 parent 7422154 commit 39100f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fragdenstaat_de/fds_donation/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ def get_donation_data(donations, ignore_receipt_date: Optional[datetime] = None)
"formatted_amount": format_number(donation.amount),
"receipt_date": (
donation.receipt_date < ignore_receipt_date
if ignore_receipt_date is not None
if ignore_receipt_date and donation.receipt_date
else bool(donation.receipt_date)
),
"amount": donation.amount,
Expand Down

0 comments on commit 39100f1

Please sign in to comment.