aboutsummaryrefslogtreecommitdiff
path: root/src/db.py
diff options
context:
space:
mode:
authorArslaan Pathan <[email protected]>2026-07-16 21:25:55 +1200
committerArslaan Pathan <[email protected]>2026-07-16 21:25:55 +1200
commitd9a6838624e78d90eba962b6004796fbfe1b4b8c (patch)
treedeb38f222e132172b8687b57083b681999b509c7 /src/db.py
parentc2a74e7472beace631fcab24986d83326e4c5dd7 (diff)
downloadslack-botnet-d9a6838624e78d90eba962b6004796fbfe1b4b8c.tar.xz
slack-botnet-d9a6838624e78d90eba962b6004796fbfe1b4b8c.zip
Complete voting mechanism
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))