Skip to content

Commit

Permalink
Adding missing classe that are not subclasses of VSA-DSS 2015
Browse files Browse the repository at this point in the history
  • Loading branch information
sjib committed Apr 12, 2024
1 parent 2455a6a commit eac5009
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion qgepqwat2ili/utils/ili2db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eac5009

Please sign in to comment.