Skip to content

Commit

Permalink
Merge pull request #131 from QGEP/2023-08-fix-qwat-export-matching-be…
Browse files Browse the repository at this point in the history
…treiber

202308-08-fix-Adjust matching betreiber
  • Loading branch information
ponceta authored Oct 11, 2023
2 parents c2d6a88 + e417853 commit a1aa220
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 a1aa220

Please sign in to comment.