refactor: Improve exception handling and logging in authentication and playlist services; enhance code readability and structure
This commit is contained in:
@@ -87,7 +87,7 @@ class DashboardService:
|
||||
)
|
||||
raise
|
||||
|
||||
def _get_date_filter(self, period: str) -> datetime | None:
|
||||
def _get_date_filter(self, period: str) -> datetime | None: # noqa: PLR0911
|
||||
"""Calculate the date filter based on the period."""
|
||||
now = datetime.now(UTC)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user