summaryrefslogtreecommitdiff
path: root/blavote.go
diff options
context:
space:
mode:
Diffstat (limited to 'blavote.go')
-rw-r--r--blavote.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/blavote.go b/blavote.go
index bb63b37..9158e1c 100644
--- a/blavote.go
+++ b/blavote.go
@@ -13,7 +13,7 @@ var version string
func main() {
- version = "0.3"
+ version = "0.31"
//Command line arguments
var opts struct {
@@ -116,7 +116,7 @@ func connectDb(name string) (*sqlite3.Conn, error) {
func initTables(db *sqlite3.Conn) {
db.Exec("create table info(id int, key text, value text)")
- db.Exec("insert into info (key, value) values('version', '0.01')")
+ db.Exec("insert into info (key, value) values('version', '$a')", version)
db.Exec("create table users(id integer primary key autoincrement, name text, admin boolean)")
db.Exec("create table polls(id integer primary key autoincrement, title text, user_id int)")