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

Commit

Permalink
fix: settings database_uri definition (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
sralloza authored Oct 14, 2021
1 parent 173a33e commit 1335114
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ class Settings(BaseSettings):
TODOIST_TOKEN: str

# Database
DATABASE_URI: str = ""
MYSQL_DATABASE: str
MYSQL_HOST: str
MYSQL_PASSWORD: str
MYSQL_PORT: str
MYSQL_USER: str

# Defined dinamically
DATABASE_URI: str = ""

@validator("DATABASE_URI", pre=True)
def assemble_db_connection(cls, v: Optional[str], values: Dict[str, Any]) -> Any:
if isinstance(v, str):
Expand Down

0 comments on commit 1335114

Please sign in to comment.