Skip to content

Commit

Permalink
Merge pull request #79 from ParkenDD/bahn-api
Browse files Browse the repository at this point in the history
park api sources config loading
  • Loading branch information
the-infinity authored Jan 17, 2024
2 parents 4a8c11e + 24b8a90 commit e9e51d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions webapp/common/config/config_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ def configure_app(app: Flask, testing: bool = False) -> None:
config_secrets_path = Path(app.config['PROJECT_ROOT']).parent.joinpath(os.getenv('CONFIG_SECRETS_FILE', 'config.secrets.yaml'))
if config_secrets_path.exists():
app.config.from_file(config_secrets_path, safe_load)
for key, value in app.config.items():
if key.startswith('PARK_API_') and 'API' in key[9:]:
os.environ[key] = value

app.config['MODE'] = os.getenv('APPLICATION_MODE', 'DEVELOPMENT')

Expand Down
2 changes: 1 addition & 1 deletion webapp/converter

0 comments on commit e9e51d4

Please sign in to comment.