Commit 84d3e5e1 authored by Danijel Schorlemmer's avatar Danijel Schorlemmer
Browse files

Changed the function parameter `id` to avoid shadowing

parent 5e7b6adb
Pipeline #39078 passed with stage
in 2 minutes and 14 seconds
......@@ -342,19 +342,19 @@ class JapanDatabase(SpatialiteDatabase):
self.connection.execute(sql_statement)"Districts and boundaries added")
def get_district_id(self, id):
def get_district_id(self, district_id):
Gets the ID of the district in the Districts table corresponding
to the ID of the administrative district specified.
id (int):
district_id (int):
ID of the administrative district
# Identify district_id based on admin_id from the District table
sql_statement = "SELECT id FROM District "
sql_statement += "WHERE id = %d" % id
sql_statement += "WHERE id = %d" % district_id
result = self.cursor.fetchone()
return result
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