fix copilots not being fetched

This commit is contained in:
Tiago vasconcelos 2022-02-23 21:03:25 +00:00
parent c58e2c5d74
commit f7ff9d27d2

View File

@ -88,7 +88,7 @@ async def get_copilot(copilot_id: str) -> Copilots:
async def get_copilots(user: str) -> List[Copilots]:
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]