all repos — honk @ 5d1d335ed23a42ecbdfc6a38265d53bd6488345a

my fork of honk

place genus is place. oops. and here comes time.
Ted Unangst tedu@tedunangst.com
Wed, 02 Oct 2019 17:27:29 -0400
commit

5d1d335ed23a42ecbdfc6a38265d53bd6488345a

parent

36d540382ff0f43fc2ff1b3c07bacf608c6e9c7a

2 files changed, 10 insertions(+), 3 deletions(-)

jump to
M database.godatabase.go

@@ -16,14 +16,14 @@

package main import ( + "bytes" "database/sql" + "encoding/json" "fmt" "log" "strconv" "strings" "time" - "bytes" - "encoding/json" "humungus.tedunangst.com/r/webs/login" )

@@ -335,7 +335,7 @@ }

if p := h.Place; p != nil { j, err := jsonify(p) if err != nil { - _, err = stmtSaveMeta.Exec(h.ID, "genus", j) + _, err = stmtSaveMeta.Exec(h.ID, "place", j) } if err != nil { log.Printf("error saving place: %s", err)
M honk.gohonk.go

@@ -62,6 +62,7 @@ Open string

Donks []*Donk Onts []string Place *Place + Time *Time } type OldRevision struct {

@@ -98,6 +99,12 @@ Name string

Latitude float64 Longitude float64 Url string +} + +type Time struct { + StartTime time.Time + EndTime time.Time + Duration time.Duration } type Honker struct {