1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-12 02:42:48 +00:00

convert server to use relative imports

This commit is contained in:
2017-01-12 14:51:25 +01:00
parent a68c97fa3c
commit 148721e071
6 changed files with 44 additions and 45 deletions

View File

@@ -7,7 +7,7 @@ import (
"log"
"time"
"mywebsite/server/db"
"../../db"
)
const (
@@ -60,8 +60,8 @@ func (s *Data) StoreData() error {
//handle queries for all sensors page
type DataStore_AllSensors struct {
ID bson.ObjectId `bson:"_id,omitempty"`
Location string `json:"location", bson:"location"`
Temperature float64 `json:"temperature" bson:"temperature"`
Location string `json:"location", bson:"location"`
Temperature float64 `json:"temperature" bson:"temperature"`
Updated time.Time `json:"updated" bson:"updated"`
}
@@ -92,4 +92,4 @@ func GetAllSensors() ([]DataStore_AllSensors, error) {
} else {
return s, errors.New("Query failed")
}
}
}