diff --git a/.gitignore b/.gitignore index d17d371..6b4b2c7 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ db.sqlite Rocket.toml frontend/node_modules/* /static/ +/data-ergo/ diff --git a/Rocket.toml b/Rocket.toml index b16f20f..e572218 100644 --- a/Rocket.toml +++ b/Rocket.toml @@ -1,4 +1,4 @@ [default] secret_key = "/NtVGizglEoyoxBLzsRDWTy4oAG1qDw4J4O+CWJSv+fypD7W9sam8hUY4j90EZsbZk8wEradS5zBoWtWKi3k8w==" rss_key = "rss-key-for-ci" -limits = { file = "10 MiB"} +limits = { file = "10 MiB", data-form = "10 MiB"} diff --git a/frontend/main.ts b/frontend/main.ts index 640f60a..625abd6 100644 --- a/frontend/main.ts +++ b/frontend/main.ts @@ -68,19 +68,21 @@ function selectBoatChange() { } function reloadPage() { - let pageTitle = document.title; - let attentionMessage = 'Riemen- und Dollenbruch'; + if (!window.location.href.includes("ergo")){ + let pageTitle = document.title; + let attentionMessage = 'Riemen- und Dollenbruch'; - document.addEventListener('visibilitychange', function() { - let isPageActive = !document.hidden; + document.addEventListener('visibilitychange', function() { + let isPageActive = !document.hidden; - if(!isPageActive){ - document.title = attentionMessage; - } else { - document.title = pageTitle; - location.reload(); - } - }); + if(!isPageActive){ + document.title = attentionMessage; + } else { + document.title = pageTitle; + location.reload(); + } + }); + } } function setMaxAmountRowers(name: string, rowers: number) { diff --git a/src/model/user.rs b/src/model/user.rs index 90061c7..d95f989 100644 --- a/src/model/user.rs +++ b/src/model/user.rs @@ -186,7 +186,7 @@ ORDER BY last_access DESC SELECT id, name, pw, is_cox, is_admin, is_guest, deleted, last_access, is_tech, dob, weight, sex FROM user WHERE deleted = 0 AND dob is not null and weight is not null and sex is not null -ORDER BY last_access DESC +ORDER BY name " ) .fetch_all(db) diff --git a/templates/ergo.html.tera b/templates/ergo.html.tera index 2ecc90f..ecb4bf9 100644 --- a/templates/ergo.html.tera +++ b/templates/ergo.html.tera @@ -7,6 +7,19 @@ {% if flash %} {{ macros::alert(message=flash.1, type=flash.0, class="sm:col-span-2 lg:col-span-3") }} {% endif %} +
+ Deine Daten +

+ Folgende Daten hat der Ruderassistent von dir. Wenn diese nicht mehr aktuell sind, bitte gewünschte Änderungen an Philipp melden (Tel. nr siehe Signal, oder an it@rudernlinz.at). +

+

+

+
+

Neuer Eintrag

Dirty Thirty @@ -16,11 +29,16 @@ {{ macros::input(label="Zeit [(hh:)mm:ss]/Distanz [m]", name="result", required=true, type="text", class="input") }} - + + @@ -36,11 +54,16 @@ {{ macros::input(label="Zeit [(hh:)mm:ss]/Distanz [m]", name="result", required=true, type="text", class="input") }} - + +