web: fix for unresponsive web interface
Local Docker Build (Dev) / build-dev (push) Successful in 4s

This commit is contained in:
2025-10-15 10:13:25 -04:00
parent 909df0cc83
commit 79a311f8ec
5 changed files with 18 additions and 15 deletions
+2 -3
View File
@@ -104,7 +104,6 @@ async def get_tv_series_list(dependencies: dict,
where_conditions = []
params = []
having_conditions = []
having_params = []
if search:
where_conditions.append("(s.imdb_id LIKE ? OR s.path LIKE ?)")
@@ -146,7 +145,7 @@ async def get_tv_series_list(dependencies: dict,
HAVING {having_clause}
) filtered_series
"""
cursor.execute(count_query, params + having_params)
cursor.execute(count_query, params)
else:
# Simple count when no HAVING clause
count_query = f"SELECT COUNT(*) FROM series s WHERE {where_clause}"
@@ -170,7 +169,7 @@ async def get_tv_series_list(dependencies: dict,
ORDER BY s.last_updated DESC
LIMIT ? OFFSET ?
"""
cursor.execute(query, params + having_params + [limit, skip])
cursor.execute(query, params + [limit, skip])
series = []
for row in cursor.fetchall():