From 7435cf9882fe577c8754fe8ac2df6f7007c546fa Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Sun, 8 Dec 2024 17:03:57 +0100 Subject: add fixes for search and sort --- src/jwebmail/model/read_mails.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/jwebmail/model') diff --git a/src/jwebmail/model/read_mails.py b/src/jwebmail/model/read_mails.py index b2e1191..fc89c8e 100644 --- a/src/jwebmail/model/read_mails.py +++ b/src/jwebmail/model/read_mails.py @@ -36,7 +36,7 @@ class QMailAuthuser: sort_val["direction"] = "asc" match sort: - case "date" | "subject" | "size": + case "date" | "sender" | "size": sort_val["parameter"] = sort case _: raise ValueError(f"invalid sort parameter {sort!r}") -- cgit v1.2.3