From bd7cd0020ea5f0d640201750e2df9c34b95908ae Mon Sep 17 00:00:00 2001 From: philipp Date: Thu, 27 Jun 2024 08:51:44 +0200 Subject: [PATCH] order logbook by arrival --- src/model/logbook.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/model/logbook.rs b/src/model/logbook.rs index 4f9fd1c..1e282f4 100644 --- a/src/model/logbook.rs +++ b/src/model/logbook.rs @@ -242,7 +242,7 @@ ORDER BY departure DESC FROM logbook JOIN rower ON logbook.id = rower.logbook_id WHERE arrival is not null AND rower_id = {} - ORDER BY departure DESC + ORDER BY arrival DESC ", user.id) ) .fetch_all(db) @@ -275,7 +275,7 @@ ORDER BY departure DESC SELECT id, boat_id, shipmaster, steering_person, shipmaster_only_steering, departure, arrival, destination, distance_in_km, comments, logtype FROM logbook WHERE arrival is not null AND arrival LIKE '{}-%' - ORDER BY departure DESC + ORDER BY arrival DESC ", year) ) .fetch_all(db) -- 2.45.2