aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrtz12 <koenig@fagott.pw>2016-10-09 19:29:48 (UTC)
committerrtz12 <koenig@fagott.pw>2016-10-09 19:29:48 (UTC)
commit4b0003241c69fd2a209a7e967254c0346847baff (patch)
treedd910fe998137cb0060b15888d181b4a860cd2dd
parentc8ae06da6bc68e6a259d98ae1657174993f65ab4 (diff)
Ich bin behindert
-rw-r--r--modules/grils/grils.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/grils/grils.go b/modules/grils/grils.go
index fbee062..4913e11 100644
--- a/modules/grils/grils.go
+++ b/modules/grils/grils.go
@@ -265,7 +265,7 @@ func (m *GrilsModule) viewGril(w http.ResponseWriter, r *http.Request, p httprou
265 265
266 // ähnliche grils holen 266 // ähnliche grils holen
267 rows, err := m.g.DB.Query(`SELECT gril_id FROM ( 267 rows, err := m.g.DB.Query(`SELECT gril_id FROM (
268 SELECT DISTINCT gril_id FROM grils_appearances WHERE appearance_id IN (SELECT appearance_id FROM gril_appearance WHERE gril_id = $1) 268 SELECT DISTINCT gril_id FROM grils_appearances WHERE appearance_id IN (SELECT appearance_id FROM grils_appearances WHERE gril_id = $1)
269 ) as t ORDER BY RANDOM() LIMIT 4;`, id) 269 ) as t ORDER BY RANDOM() LIMIT 4;`, id)
270 if err != nil { 270 if err != nil {
271 log.Println("could not get similar grils:", err) 271 log.Println("could not get similar grils:", err)