diff --git a/app.js b/app.js index 30b77f1..f9fc345 100644 --- a/app.js +++ b/app.js @@ -165,8 +165,7 @@ FROM teilnehmende t LEFT JOIN trainings tr ON t.id = tr.aufwaermleiter WHERE t.helfer = true GROUP BY t.id -ORDER BY weeks_since_last DESC -LIMIT 4; +ORDER BY weeks_since_last DESC; `); return result.rows; }; @@ -180,8 +179,7 @@ const getCandidatesForSpielleiter = async () => { LEFT JOIN trainings tr ON t.id = tr.spielleiter WHERE t.helfer = true GROUP BY t.id - ORDER BY weeks_since_last DESC - LIMIT 4 + ORDER BY weeks_since_last DESC; `); return result.rows; }; diff --git a/views/trainings.ejs b/views/trainings.ejs index ec871f5..3474677 100644 --- a/views/trainings.ejs +++ b/views/trainings.ejs @@ -1,6 +1,6 @@ <%- include('partials/header') %>

Training <%= training.datum %>

- +

<%= training.datum + 7 %>