Skip to content

Commit

Permalink
fixed encoding issues with yaml import
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-werner committed Mar 28, 2024
1 parent 39ef9de commit 24a5107
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions core/import_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ def _load_osm_from_placename(self, db: PostgresConnection, data_schema: str, dat

# download AOI
# first: create AOI query string
h.debugLog(f"preparing AOI query for {settings['place_name']}")
o_add_filter = ""
if h.has_keys(settings, ['admin_level']):
o_add_filter += "[admin_level='" + str(settings['admin_level']) + "']"
Expand Down
2 changes: 1 addition & 1 deletion generate_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from settings import DbSettings, GlobalSettings

parser = argparse.ArgumentParser(description='TODO: add description')
parser.add_argument('settings_file', type=argparse.FileType('r'),
parser.add_argument('settings_file', type=argparse.FileType('r', encoding='utf-8'),
help='TODO: write detailed description here')
parser.add_argument('--skip', nargs='+', choices=['import', 'optional', 'network', 'attributes', 'index', 'export'],
help='skip one or more of these steps - e.g. "--skip import optional"')
Expand Down

0 comments on commit 24a5107

Please sign in to comment.