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:
@@ -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")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user