Skip to content

Commit

Permalink
Org with or whitout basket
Browse files Browse the repository at this point in the history
  • Loading branch information
domi4484 committed Nov 21, 2024
1 parent 53b36e5 commit ea1a26f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion qgepqwat2ili/utils/qgep_export_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def base_common(self, row, type_name):
"t_id": self.get_tid(row),
}

if self.current_basket is not None:
if self.current_basket is not None and type_name != "organisation":
base["t_basket"] = self.current_basket.t_id

return base
Expand Down Expand Up @@ -281,6 +281,10 @@ def export_organisation(self):
bemerkung=self.truncate(self.emptystr_to_null(row.remark), 80),
bezeichnung=self.null_to_emptystr(row.identifier),
)

if self.current_basket is not None:
organisation.t_basket = self.current_basket.t_id

self.abwasser_session.add(organisation)
self.create_metaattributes(row)
print(".", end="")
Expand Down

0 comments on commit ea1a26f

Please sign in to comment.