place genus is place. oops. and here comes time.

This commit is contained in:
Ted Unangst 2019-10-02 17:27:29 -04:00
parent bb52c24c31
commit 035822f3f2
2 changed files with 10 additions and 3 deletions

View File

@ -16,14 +16,14 @@
package main package main
import ( import (
"bytes"
"database/sql" "database/sql"
"encoding/json"
"fmt" "fmt"
"log" "log"
"strconv" "strconv"
"strings" "strings"
"time" "time"
"bytes"
"encoding/json"
"humungus.tedunangst.com/r/webs/login" "humungus.tedunangst.com/r/webs/login"
) )
@ -335,7 +335,7 @@ func saveextras(h *Honk) error {
if p := h.Place; p != nil { if p := h.Place; p != nil {
j, err := jsonify(p) j, err := jsonify(p)
if err != nil { if err != nil {
_, err = stmtSaveMeta.Exec(h.ID, "genus", j) _, err = stmtSaveMeta.Exec(h.ID, "place", j)
} }
if err != nil { if err != nil {
log.Printf("error saving place: %s", err) log.Printf("error saving place: %s", err)

View File

@ -62,6 +62,7 @@ type Honk struct {
Donks []*Donk Donks []*Donk
Onts []string Onts []string
Place *Place Place *Place
Time *Time
} }
type OldRevision struct { type OldRevision struct {
@ -100,6 +101,12 @@ type Place struct {
Url string Url string
} }
type Time struct {
StartTime time.Time
EndTime time.Time
Duration time.Duration
}
type Honker struct { type Honker struct {
ID int64 ID int64
UserID int64 UserID int64