mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-23 14:40:47 +01:00
Merge pull request #542 from talvasconcelos/fix/copilot_db
fix copilots not being fetched
This commit is contained in:
commit
a13bb9cfea
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]:
|
||||
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]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue