Skip to content

Commit

Permalink
Adjust matching betreiber=DOES_NOT_EXIST_IN_QWAT
Browse files Browse the repository at this point in the history
instead of betreiber=get_vl(row.fk_distributor__REL, "name"),
  • Loading branch information
sjib committed Aug 30, 2023
1 parent c2d6a88 commit e417853
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions qgepqwat2ili/qwat/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def leitungsknoten_common(row):
aussenbeschichtung=get_vl(row.fk_protection__REL),
baujahr=clamp(row.year, min_val=1800, max_val=2100),
bemerkung=truncate(sanitize_str(row.remark), 80),
betreiber=get_vl(row.fk_distributor__REL, "name"),
betreiber=DOES_NOT_EXIST_IN_QWAT,
betriebsdruck=row.pressure_nominal,
bettung=get_vl(row.fk_bedding__REL),
druckzone=get_vl(row.fk_pressurezone__REL, "name") or "unknown",
Expand Down Expand Up @@ -486,7 +486,7 @@ def leitungsknoten_common(row):
name_nummer=str(row.id),
art="Aufbereitungsanlage.unbekannt",
leistung=f"{row.treatment_capacity}",
betreiber=row.fk_distributor__REL.name,
betreiber=DOES_NOT_EXIST_IN_QWAT,
konzessionaer=DOES_NOT_EXIST_IN_QWAT,
unterhaltspflichtiger=DOES_NOT_EXIST_IN_QWAT,
zustand=get_vl(row.fk_status__REL),
Expand Down Expand Up @@ -523,7 +523,7 @@ def leitungsknoten_common(row):
art="Brunnen",
material=DOES_NOT_EXIST_IN_QWAT,
leistung=f"{row.flow_current}",
betreiber=get_vl(row.fk_distributor__REL, "name"),
betreiber=DOES_NOT_EXIST_IN_QWAT,
konzessionaer=DOES_NOT_EXIST_IN_QWAT,
unterhaltspflichtiger=DOES_NOT_EXIST_IN_QWAT,
zustand=get_vl(row.fk_status__REL),
Expand Down Expand Up @@ -581,7 +581,7 @@ def leitungsknoten_common(row):
**leitungsknoten_common(row),
# --- wassergewinnungsanlage ---
art=get_vl(row.fk_source_type__REL),
betreiber=get_vl(row.fk_distributor__REL, "name"),
betreiber=DOES_NOT_EXIST_IN_QWAT,
konzessionaer=DOES_NOT_EXIST_IN_QWAT,
leistung=str(row.flow_average),
name_nummer=str(row.id),
Expand Down Expand Up @@ -615,7 +615,7 @@ def leitungsknoten_common(row):
art="Schacht.Zonentrennung" if row.networkseparation else "Schacht.unbekannt",
material=DOES_NOT_EXIST_IN_QWAT,
leistung=DOES_NOT_EXIST_IN_QWAT,
betreiber=get_vl(row.fk_distributor__REL, "name"),
betreiber=DOES_NOT_EXIST_IN_QWAT,
konzessionaer=DOES_NOT_EXIST_IN_QWAT,
unterhaltspflichtiger=DOES_NOT_EXIST_IN_QWAT,
zustand=get_vl(row.fk_status__REL),
Expand Down Expand Up @@ -651,7 +651,7 @@ def leitungsknoten_common(row):
art=get_vl(row.fk_pressurecontrol_type__REL),
material=DOES_NOT_EXIST_IN_QWAT,
leistung=DOES_NOT_EXIST_IN_QWAT,
betreiber=get_vl(row.fk_distributor__REL, "name"),
betreiber=DOES_NOT_EXIST_IN_QWAT,
konzessionaer=DOES_NOT_EXIST_IN_QWAT,
unterhaltspflichtiger=DOES_NOT_EXIST_IN_QWAT,
zustand=get_vl(row.fk_status__REL),
Expand Down

0 comments on commit e417853

Please sign in to comment.