fix: remove double-call on AsyncSession in SerieScanner

get_async_session_factory() returns session directly, not factory.
Calling result again with () caused 'AsyncSession' object is not callable.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-05-27 20:19:34 +02:00
parent fc4e52f1a2
commit b9c55f9e7a
3 changed files with 18 additions and 3 deletions

View File

@@ -218,8 +218,7 @@ class SerieScanner:
try:
from src.server.database.connection import get_async_session_factory
session_factory = get_async_session_factory()
db = session_factory()
db = get_async_session_factory()
try:
existing = await AnimeSeriesService.get_by_key(db, serie.key)
if existing: