rework version slightly
This commit is contained in:
parent
a5db27531f
commit
02f73018ab
4
honk.go
4
honk.go
|
@ -28,7 +28,7 @@ import (
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
var honkVersion = "honk 0.8.1-dev"
|
var softwareVersion = "develop"
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
notrand.Seed(time.Now().Unix())
|
notrand.Seed(time.Now().Unix())
|
||||||
|
@ -213,7 +213,7 @@ func main() {
|
||||||
case "upgrade":
|
case "upgrade":
|
||||||
upgradedb()
|
upgradedb()
|
||||||
case "version":
|
case "version":
|
||||||
fmt.Println(honkVersion)
|
fmt.Println(softwareVersion)
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
}
|
}
|
||||||
db := opendatabase()
|
db := opendatabase()
|
||||||
|
|
2
web.go
2
web.go
|
@ -1901,7 +1901,7 @@ func servehtml(w http.ResponseWriter, r *http.Request) {
|
||||||
templinfo := getInfo(r)
|
templinfo := getInfo(r)
|
||||||
templinfo["AboutMsg"] = aboutMsg
|
templinfo["AboutMsg"] = aboutMsg
|
||||||
templinfo["LoginMsg"] = loginMsg
|
templinfo["LoginMsg"] = loginMsg
|
||||||
templinfo["HonkVersion"] = honkVersion
|
templinfo["HonkVersion"] = softwareVersion
|
||||||
if r.URL.Path == "/about" {
|
if r.URL.Path == "/about" {
|
||||||
templinfo["Sensors"] = getSensors()
|
templinfo["Sensors"] = getSensors()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue