Skip to content

Commit

Permalink
loading in flask_secret_key from the settings after line was removed
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrsenkow committed Jan 7, 2025
1 parent ca423d4 commit 3f286ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
"filename": "bin/settings.py",
"hashed_secret": "347cd9c53ff77d41a7b22aa56c7b4efaf54658e3",
"is_verified": false,
"line_number": 50
"line_number": 51
}
],
"docs/local_dev_environment.md": [
Expand Down Expand Up @@ -354,5 +354,5 @@
}
]
},
"generated_at": "2024-11-08T23:15:04Z"
"generated_at": "2025-01-07T20:16:15Z"
}
1 change: 1 addition & 0 deletions bin/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def load_json(file_name):
"database": conf_data.get("db_database", os.environ.get("PGDB", "sheepdog")),
}

config["FLASK_SECRET_KEY"] = conf_data.get("gdcapi_secret_key", "{{gdcapi_secret_key}}")
fence_username = conf_data.get(
"fence_username", os.environ.get("FENCE_DB_USER", "fence")
)
Expand Down

0 comments on commit 3f286ee

Please sign in to comment.