feat: add optional dashboard config fields
Made-with: Cursor
This commit is contained in:
@@ -12,3 +12,11 @@ class Settings(BaseSettings):
|
||||
soundcloud_user: str = "nicktherat"
|
||||
show_day: int = 2
|
||||
show_hour: int = 22
|
||||
|
||||
web_user: str | None = None
|
||||
web_password: str | None = None
|
||||
secret_key: str | None = None
|
||||
|
||||
@property
|
||||
def dashboard_enabled(self) -> bool:
|
||||
return all([self.web_user, self.web_password, self.secret_key])
|
||||
|
||||
Reference in New Issue
Block a user