From 035822f3f24fd52591c08ecc9ecce94e21076720 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Wed, 2 Oct 2019 17:27:29 -0400 Subject: [PATCH] place genus is place. oops. and here comes time. --- database.go | 6 +++--- honk.go | 7 +++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/database.go b/database.go index 8b2d4d4..f644458 100644 --- a/database.go +++ b/database.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 @@ func saveextras(h *Honk) error { 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) diff --git a/honk.go b/honk.go index 29dfaa9..aaa7294 100644 --- a/honk.go +++ b/honk.go @@ -62,6 +62,7 @@ type Honk struct { Donks []*Donk Onts []string Place *Place + Time *Time } type OldRevision struct { @@ -100,6 +101,12 @@ type Place struct { Url string } +type Time struct { + StartTime time.Time + EndTime time.Time + Duration time.Duration +} + type Honker struct { ID int64 UserID int64