From 02f73018ab6d1e2f913ff15d64d7c5e726acfdf7 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Fri, 8 Nov 2019 21:15:40 -0500 Subject: [PATCH] rework version slightly --- honk.go | 4 ++-- web.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/honk.go b/honk.go index 3ae9634..5ccfcbb 100644 --- a/honk.go +++ b/honk.go @@ -28,7 +28,7 @@ import ( "time" ) -var honkVersion = "honk 0.8.1-dev" +var softwareVersion = "develop" func init() { notrand.Seed(time.Now().Unix()) @@ -213,7 +213,7 @@ func main() { case "upgrade": upgradedb() case "version": - fmt.Println(honkVersion) + fmt.Println(softwareVersion) os.Exit(0) } db := opendatabase() diff --git a/web.go b/web.go index 4545c6c..6824a7c 100644 --- a/web.go +++ b/web.go @@ -1901,7 +1901,7 @@ func servehtml(w http.ResponseWriter, r *http.Request) { templinfo := getInfo(r) templinfo["AboutMsg"] = aboutMsg templinfo["LoginMsg"] = loginMsg - templinfo["HonkVersion"] = honkVersion + templinfo["HonkVersion"] = softwareVersion if r.URL.Path == "/about" { templinfo["Sensors"] = getSensors() }