Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Commit a63e634

Browse files
Fix db name
1 parent f6434c4 commit a63e634

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

weatherdan/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from rich.theme import Theme
2121
from rich.traceback import install
2222

23-
__version__ = "0.6.1"
23+
__version__ = "0.6.2"
2424
CONSOLE = Console(
2525
theme=Theme(
2626
{

weatherdan/settings.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ class DatabaseSettings(SettingsModel):
3838
@property
3939
def db_url(self: Self) -> str:
4040
if self.source == Source.POSTGRES:
41-
return f"postgresql+psycopg://{self.user}:{self.password}@{self.host}/{self.name}"
42-
return f"sqlite:///{self.name}"
41+
return (
42+
f"postgresql+psycopg://{self.user}:{self.password}@{self.host}/{self.database_name}"
43+
)
44+
return f"sqlite:///{self.database_name}"
4345

4446

4547
class EcowittSettings(SettingsModel):

0 commit comments

Comments
 (0)