Merge pull request #542 from talvasconcelos/fix/copilot_db

fix copilots not being fetched
This commit is contained in:
Arc 2022-03-07 04:16:41 +00:00 committed by GitHub
commit a13bb9cfea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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]