diff --git a/src/model/stat.rs b/src/model/stat.rs index 0344de3..994f91c 100644 --- a/src/model/stat.rs +++ b/src/model/stat.rs @@ -27,6 +27,7 @@ INNER JOIN ( FROM logbook l WHERE l.distance_in_km IS NOT NULL ) sub ON u.id = sub.user_id +WHERE u.is_guest = false GROUP BY u.name ORDER BY rowed_km DESC; ",