mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-08-28 03:27:31 +08:00
fix site
This commit is contained in:
@@ -75,7 +75,7 @@ class Site(Base):
|
|||||||
@async_db_query
|
@async_db_query
|
||||||
async def async_get_actives(cls, db: AsyncSession):
|
async def async_get_actives(cls, db: AsyncSession):
|
||||||
result = await db.execute(select(cls).where(cls.is_active == 1))
|
result = await db.execute(select(cls).where(cls.is_active == 1))
|
||||||
return result.all()
|
return result.scalars().all()
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@db_query
|
@db_query
|
||||||
|
|||||||
Reference in New Issue
Block a user