aboutsummaryrefslogtreecommitdiff
path: root/src/db.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/db.py')
-rw-r--r--src/db.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/db.py b/src/db.py
index f1ae4f6..3ff226e 100644
--- a/src/db.py
+++ b/src/db.py
@@ -142,7 +142,6 @@ async def get_active_users() -> list[dict]:
rows = await cursor.fetchall()
return [dict(row) for row in rows]
-
async def add_vote(deployment_id: int, voter_id: str, vote: str):
async with aiosqlite.connect(DB_PATH) as db:
await db.execute("INSERT OR REPLACE INTO Votes (deployment_id, voter_id, vote) VALUES (?, ?, ?)", (deployment_id, voter_id, vote))