Skip to content

Commit

Permalink
Fix banktransfer import when reference is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanw committed Nov 2, 2023
1 parent 505811e commit edb07ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fragdenstaat_de/fds_donation/external.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ def import_banktransfers(xls_file, project):
}
)
df = df.dropna(subset=["date_received"])
df["reference"] = df["reference"].fillna("")
df["date_received"] = df["date_received"].dt.tz_localize(settings.TIME_ZONE)
if "date" in df.columns:
df["date"] = df["date"].dt.tz_localize(settings.TIME_ZONE)
Expand Down

0 comments on commit edb07ba

Please sign in to comment.