summaryrefslogtreecommitdiff
path: root/models.go
diff options
context:
space:
mode:
Diffstat (limited to 'models.go')
-rw-r--r--models.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models.go b/models.go
index dfc054d..d124387 100644
--- a/models.go
+++ b/models.go
@@ -114,7 +114,7 @@ FROM decisions
WHERE status = 0 AND id NOT IN (SELECT decision FROM votes WHERE voter = $1)
ORDER BY due ASC`,
sqlCreateVote: `
-INSERT INTO votes (decision, voter, vote, voted, notes)
+INSERT OR REPLACE INTO votes (decision, voter, vote, voted, notes)
VALUES (:decision, :voter, :vote, :voted, :notes)`,
sqlLoadVote: `
SELECT decision, voter, vote, voted, notes