Commit 67bc50b3 authored by Cecilia Nievas's avatar Cecilia Nievas
Browse files

Fixed typo when assessing if database query returned values

parent 5207384b
Pipeline #44355 passed with stage
in 2 minutes and 35 seconds
......@@ -583,7 +583,7 @@ class DatabaseQueries:
db_gde_tiles.close_connection()
if len(exec_result) > 1: # Entries exist --> retrieve
if len(exec_result) > 0: # Entries exist --> retrieve
building_class_names = numpy.array(
[exec_result[i][0] for i in range(len(exec_result))], dtype="str"
)
......@@ -707,7 +707,7 @@ class DatabaseQueries:
db_gde_tiles.close_connection()
if len(exec_result) > 1: # Entries exist --> retrieve
if len(exec_result) > 0: # Entries exist --> retrieve
quadkeys = numpy.array(
[exec_result[i][0] for i in range(len(exec_result))], dtype="str"
)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment