datum-test
This commit is contained in:
parent
7ad9c8b0cb
commit
94b50dbd21
6
app.js
6
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;
|
||||
};
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<%- include('partials/header') %>
|
||||
<h1>Training <%= training.datum %></h1>
|
||||
|
||||
<h2> <%= training.datum + 7 %> </h2>
|
||||
<form method="GET" action="/">
|
||||
<label for="training-date">Datum wählen:</label>
|
||||
<select id="training-date" name="date" onchange="this.form.submit()">
|
||||
|
|
Loading…
Reference in New Issue