Skip to content

Commit

Permalink
fix data export.. again. 🙈 #352
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasnuesslein committed Mar 2, 2022
1 parent bf654f6 commit 3532bfd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/landmatrix/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ def get(self, name):

def flatten_date_current_value(data, field, fieldname) -> None:
if not data.get(field):
data[field] = ""
return
data[field] = "|".join(
[
Expand Down Expand Up @@ -769,6 +770,8 @@ def deal_download_format(data):
for x in data["involved_actors"]
]
)
else:
data["involved_actors"] = ""

bool_cast(data, "on_the_lease_state")
bool_cast(data, "off_the_lease_state")
Expand Down

0 comments on commit 3532bfd

Please sign in to comment.