X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/3649487f5e2c70c5964a0af31bb846fe55904ab6..e6d855b954e97c04c62032a4f1af8f9307eacada:/nominatim/db/sql_preprocessor.py diff --git a/nominatim/db/sql_preprocessor.py b/nominatim/db/sql_preprocessor.py index a1bf5b7f..10d93666 100644 --- a/nominatim/db/sql_preprocessor.py +++ b/nominatim/db/sql_preprocessor.py @@ -1,3 +1,9 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# This file is part of Nominatim. (https://nominatim.org) +# +# Copyright (C) 2022 by the Nominatim developer community. +# For a full list of authors see the git log. """ Preprocessing of SQL files. """ @@ -36,7 +42,7 @@ def _setup_tablespace_sql(config): tspace = getattr(config, 'TABLESPACE_{}_{}'.format(subset, kind)) if tspace: tspace = 'TABLESPACE "{}"'.format(tspace) - out['{}_{}'.format(subset.lower, kind.lower())] = tspace + out['{}_{}'.format(subset.lower(), kind.lower())] = tspace return out