fix copilots not being fetched
This commit is contained in:
parent
c58e2c5d74
commit
f7ff9d27d2
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue