diff options
Diffstat (limited to 'modules/grils')
-rw-r--r-- | modules/grils/grils.go | 2 |
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) |