diff --git a/qgepqwat2ili/utils/ili2db.py b/qgepqwat2ili/utils/ili2db.py index 3c704b3d..1be7ba68 100644 --- a/qgepqwat2ili/utils/ili2db.py +++ b/qgepqwat2ili/utils/ili2db.py @@ -22,7 +22,6 @@ def check_organisation_subclass_data(): cursor.execute("SELECT obj_id FROM qgep_od.organisation;") - organisation_subclass_check = True if cursor.rowcount > 0: organisation_count = cursor.rowcount logger.info(f"Number of organisation datasets: {organisation_count}") @@ -64,7 +63,6 @@ def check_wastewater_structure_subclass_data(): cursor = connection.cursor() cursor.execute("SELECT obj_id FROM qgep_od.wastewater_structure;") - wastewater_structure_subclass_check = True if cursor.rowcount > 0: wastewater_structure_count = cursor.rowcount logger.info(f"Number of wastewater_structure datasets: {wastewater_structure_count}") @@ -243,7 +241,6 @@ def check_fk_operator_null(): missing_fk_operator_count = 0 # add MANDATORY classes to be checked - check_fk_operator_null = True for notsubclass in [ # SIA405 Abwasser ("wastewater_structure"), @@ -283,8 +280,6 @@ def check_fk_dataowner_null(): connection.set_session(autocommit=True) cursor = connection.cursor() - check_fk_dataowner_null = True - missing_fk_dataowner_count = 0 # add MANDATORY classes to be checked for notsubclass in [ @@ -372,8 +367,6 @@ def check_fk_provider_null(): connection.set_session(autocommit=True) cursor = connection.cursor() - check_fk_provider_null = True - missing_fk_provider_count = 0 # add MANDATORY classes to be checked for notsubclass in [