aboutsummaryrefslogtreecommitdiff
path: root/store
diff options
context:
space:
mode:
authorFelix Hanley <felix@userspace.com.au>2020-02-13 05:38:50 +0000
committerFelix Hanley <felix@userspace.com.au>2020-02-13 05:38:50 +0000
commit42fdc3943805531394a983b98365dc260dbb6279 (patch)
treefe47bb910537bfc26a2511eea00c5fb77ad4ce4d /store
parent9f2840abba291f00b2b0df994e57b536f690ca6e (diff)
downloadsws-42fdc3943805531394a983b98365dc260dbb6279.tar.gz
sws-42fdc3943805531394a983b98365dc260dbb6279.tar.bz2
Add template loader and charts
Diffstat (limited to 'store')
-rw-r--r--store/sqlite3.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/store/sqlite3.go b/store/sqlite3.go
index 70e6677..fce375a 100644
--- a/store/sqlite3.go
+++ b/store/sqlite3.go
@@ -44,8 +44,8 @@ func (s *Sqlite3) SaveDomain(d *sws.Domain) error {
return nil
}
-func (s *Sqlite3) GetHits(d sws.Domain, start, end time.Time, f map[string]interface{}) ([]sws.Hit, error) {
- pvs := make([]sws.Hit, 0)
+func (s *Sqlite3) GetHits(d sws.Domain, start, end time.Time, f map[string]interface{}) ([]*sws.Hit, error) {
+ pvs := make([]*sws.Hit, 0)
filter := map[string]interface{}{
"start": start,
@@ -68,7 +68,7 @@ func (s *Sqlite3) GetHits(d sws.Domain, start, end time.Time, f map[string]inter
if err := rows.StructScan(pv); err != nil {
return pvs, err
}
- pvs = append(pvs, *pv)
+ pvs = append(pvs, pv)
}
return pvs, nil
}