Skip to content
Snippets Groups Projects
Commit 2416061d authored by Danijel Schorlemmer's avatar Danijel Schorlemmer
Browse files

Simplify the handling of config-file entries for database configuration

parent 4581d445
Branches
Tags
1 merge request!22Resolve "Change the config-file handling so that the `itersize` entry will be correctly handled"
Pipeline #62268 passed
......@@ -575,14 +575,7 @@ def command_line_interface():
if command == "local":
exposure_database_object = SpatiaLiteExposure(args.exposure_database)
elif command == "server":
exposure_db_config = {
"host": postgis_config["Exposure"]["host"],
"dbname": postgis_config["Exposure"]["dbname"],
"port": postgis_config["Exposure"]["port"],
"username": postgis_config["Exposure"]["username"],
"password": postgis_config["Exposure"]["password"],
"timeout": postgis_config["Exposure"].get("timeout", None),
}
exposure_db_config = dict(postgis_config["Exposure"])
exposure_database_object = PostGISExposure(**exposure_db_config)
# Initialize timer
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment