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 %}
+
+ 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).
+ Deine Daten
+
+
+
+