Skip to content

Commit cf00e69

Browse files
committed
typos
1 parent 32a1d51 commit cf00e69

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

src/DataBUS/neotomaValidator/insert_final.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,4 @@ def insert_final(cur, databus):
4646
response.valid.append(False)
4747
response.message.append(f"✗ Dataset submission cannot be finalized: {e}")
4848
response.message = list(set(response.message))
49-
response.validAll = all(response.valid)
5049
return response

src/DataBUS/neotomaValidator/valid_geopolitical_units.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,14 @@ def valid_geopolitical_units(cur, yml_dict, csv_file, databus=None):
7171
response.valid.append(False)
7272

7373
for unit in inputs:
74-
cur.execute(
75-
query_with_parent,
76-
{"geopoliticalname": inputs[unit].lower(), "highergeopoliticalid": current_id},
77-
)
78-
gpid2 = cur.fetchone()
74+
if inputs[unit] is None:
75+
break
76+
else:
77+
cur.execute(
78+
query_with_parent,
79+
{"geopoliticalname": inputs[unit].lower(), "highergeopoliticalid": current_id},
80+
)
81+
gpid2 = cur.fetchone()
7982
if not gpid2:
8083
response.message.append(f"? Subregional Unit {inputs[unit]} not found.")
8184
break

0 commit comments

Comments
 (0)