copilot still not working

This commit is contained in:
benarc
2021-10-13 10:43:11 +01:00
parent 771c7c25c1
commit d5a4dc801f
5 changed files with 49 additions and 51 deletions
-2
View File
@@ -11,7 +11,6 @@ async def create_copilot(
data: CreateCopilotData, inkey: Optional[str] = ""
) -> Copilots:
copilot_id = urlsafe_short_hash()
await db.execute(
"""
INSERT INTO copilot.copilots (
@@ -82,7 +81,6 @@ async def get_copilot(copilot_id: str) -> Copilots:
async def get_copilots(user: str) -> List[Copilots]:
rows = await db.fetchall("SELECT * FROM copilot.copilots WHERE user = ?", (user,))
print(user)
return [Copilots(**row) for row in rows]