mirror of
https://github.com/lucaspalomodevelop/eventcally.git
synced 2026-03-13 00:07:22 +00:00
Merge pull request #403 from eventcally/issues/402
Fix für SITE_NAME #402
This commit is contained in:
commit
91aaebc22d
@ -23,6 +23,7 @@ def getenv_bool(name: str, default: str = "False"):
|
||||
def set_env_to_app(app: Flask, key: str, default: str = None):
|
||||
if key in os.environ and os.environ[key]: # pragma: no cover
|
||||
app.config[key] = os.environ[key]
|
||||
return
|
||||
|
||||
if default:
|
||||
app.config[key] = default
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user