|
|
@ -114,7 +114,7 @@ FROM decisions
|
|
|
|
WHERE status = 0 AND id NOT IN (SELECT decision FROM votes WHERE voter = $1)
|
|
|
|
WHERE status = 0 AND id NOT IN (SELECT decision FROM votes WHERE voter = $1)
|
|
|
|
ORDER BY due ASC`,
|
|
|
|
ORDER BY due ASC`,
|
|
|
|
sqlCreateVote: `
|
|
|
|
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)`,
|
|
|
|
VALUES (:decision, :voter, :vote, :voted, :notes)`,
|
|
|
|
sqlLoadVote: `
|
|
|
|
sqlLoadVote: `
|
|
|
|
SELECT decision, voter, vote, voted, notes
|
|
|
|
SELECT decision, voter, vote, voted, notes
|
|
|
|