fix: Add missing commas in function calls and improve code formatting
This commit is contained in:
@@ -56,14 +56,14 @@ class DashboardService:
|
||||
try:
|
||||
# Calculate the date filter based on period
|
||||
date_filter = self._get_date_filter(period)
|
||||
|
||||
|
||||
# Get top sounds from repository
|
||||
top_sounds = await self.sound_repository.get_top_sounds(
|
||||
sound_type=sound_type,
|
||||
date_filter=date_filter,
|
||||
limit=limit,
|
||||
)
|
||||
|
||||
|
||||
return [
|
||||
{
|
||||
"id": sound["id"],
|
||||
@@ -86,7 +86,7 @@ class DashboardService:
|
||||
period,
|
||||
)
|
||||
raise
|
||||
|
||||
|
||||
def _get_date_filter(self, period: str) -> datetime | None:
|
||||
"""Calculate the date filter based on the period."""
|
||||
now = datetime.now(UTC)
|
||||
|
||||
Reference in New Issue
Block a user