aboutsummaryrefslogtreecommitdiff
path: root/modules/search
diff options
context:
space:
mode:
authorjan <jan@ruken.pw>2016-10-11 15:44:12 (UTC)
committerjan <jan@ruken.pw>2016-10-11 15:44:12 (UTC)
commitb5051d2358e12f877e5c52053dcf1a16959e4ded (patch)
tree43c9edcd70facc9becd1d6de8c1a454625ac9762 /modules/search
parente2d40c07c10ba46c7b32bbfbbf00493f40fe3c56 (diff)
irgendwie angefangen 'models' zu verwenden, wir muessen mal gucken wie wir das genau gestalten wollen
Diffstat (limited to 'modules/search')
-rw-r--r--modules/search/search.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/search/search.go b/modules/search/search.go
index a614c08..4048dbe 100644
--- a/modules/search/search.go
+++ b/modules/search/search.go
@@ -1,6 +1,7 @@
1package search 1package search
2 2
3import ( 3import (
4 "fmt"
4 "log" 5 "log"
5 "net/http" 6 "net/http"
6 7
@@ -72,7 +73,9 @@ func (m *Module) instantSearchGril(w http.ResponseWriter, r *http.Request, p htt
72 continue 73 continue
73 } 74 }
74 75
75 result.ImagePath = grils.ImagePath(result.ID, true) 76 // Jan: Das ist hier irgendwie scheisse, aber wir bauen ja grad irgendwie den kram auf Models um. Wir brauchen da
77 // irgendwas besseres.
78 result.ImagePath = fmt.Sprintf("http://img.grilist.moe/gril/thumb/%d.jpg", result.ID)
76 results = append(results, result) 79 results = append(results, result)
77 } 80 }
78 81