Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

[Task]: Finish adding Postgres Integration to Analytics Library #72

Merged
merged 14 commits into from
Jun 12, 2024
3 changes: 3 additions & 0 deletions analytics/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

For more information visit: https://www.dynaconf.com/
"""
import psycopg
from dynaconf import Dynaconf, Validator, ValidationError

settings = Dynaconf(
Expand All @@ -16,6 +17,8 @@
# looks for config vars in the following files
# with vars in .secrets.toml overriding vars in settings.toml
settings_files=["settings.toml", ".secrets.toml"],
# merge the settings found in all files
merge_enabled= True,
# add validators for our required config vars
validators=[
Validator("SLACK_BOT_TOKEN", must_exist=True),
Expand Down
Loading
Loading