mirror of
https://github.com/lnbits/lnbits.git
synced 2025-06-26 16:51:42 +02:00
fix copilots not being fetched
This commit is contained in:
parent
c58e2c5d74
commit
f7ff9d27d2
@ -88,7 +88,7 @@ async def get_copilot(copilot_id: str) -> Copilots:
|
|||||||
|
|
||||||
async def get_copilots(user: str) -> List[Copilots]:
|
async def get_copilots(user: str) -> List[Copilots]:
|
||||||
rows = await db.fetchall(
|
rows = await db.fetchall(
|
||||||
"SELECT * FROM copilot.newer_copilots WHERE user = ?", (user,)
|
'SELECT * FROM copilot.newer_copilots WHERE "user" = ?', (user,)
|
||||||
)
|
)
|
||||||
return [Copilots(**row) for row in rows]
|
return [Copilots(**row) for row in rows]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user