Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 17, 2024
1 parent 190496f commit 535e2ec
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions qgepqwat2ili/utils/ili2db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down Expand Up @@ -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}")
Expand Down Expand Up @@ -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"),
Expand Down Expand Up @@ -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 [
Expand Down Expand Up @@ -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 [
Expand Down

0 comments on commit 535e2ec

Please sign in to comment.