Commit e2311707 authored by shinde's avatar shinde
Browse files

Added docstring to the read_district_id function

parent 0c59e097
Pipeline #27901 passed with stage
in 5 minutes and 3 seconds
......@@ -616,6 +616,15 @@ class JapanDatabase(SpatialiteDatabase):
logger.info("Districts and boundaries added")
def read_district_id(self, admin_id):
"""
Reads the District table in the database and returns ID of the district corresponding
to the ID of the administrative district specified.
Args:
admin_id (str):
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 admin_id = %d" % admin_id
......
Markdown is supported
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