From eac500908bd7e94e200a1e9f83f93ddb4764f3d9 Mon Sep 17 00:00:00 2001 From: SJiB Date: Fri, 12 Apr 2024 18:09:38 +0200 Subject: [PATCH] Adding missing classe that are not subclasses of VSA-DSS 2015 --- qgepqwat2ili/utils/ili2db.py | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/qgepqwat2ili/utils/ili2db.py b/qgepqwat2ili/utils/ili2db.py index 1dfbe4ea..58afeef4 100644 --- a/qgepqwat2ili/utils/ili2db.py +++ b/qgepqwat2ili/utils/ili2db.py @@ -108,8 +108,33 @@ def check_identifier_null(): ('pipe_profile'), #VSA-DSS ('catchment_area'), - ('zone'), + ('connection_object'), + ('control_center'), + ('hazard_source'), + ('hydr_geometry'), + ('hydraulic_char_data'), + ('measurement_result'), + ('measurement_series'), + ('measuring_device'), + ('measuring_point'), + ('mechanical_pretreatment'), ('overflow'), + ('overflow_char'), + ('retention_body'), + ('river_bank'), + ('river_bed'), + ('sector_water_body'), + ('substance'), + ('surface_runoff_parameters'), + ('surface_water_bodies'), + ('throttle_shut_off_unit'), + ('waste_water_treatment'), + ('water_catchment'), + ('water_control_structure'), + ('water_course_segment'), + ('wwtp_energy_use'), + ('zone'), + ]: cursor.execute(f"SELECT COUNT(obj_id) FROM qgep_od.{notsubclass} WHERE identifier is null;") # use cursor.fetchone()[0] instead of cursor.rowcount