From 66579fa4ab238f686d88e36436dc2f82c8075070 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Thu, 27 Jul 2023 22:35:18 +0200 Subject: Revert change for search result table. Changed from tuple to list to apease linter. I however forgot that for HTML types, lists are treated as sequences of items, while tuples are tags... --- mu4web/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mu4web/main.py b/mu4web/main.py index 8a5fa62..776f655 100644 --- a/mu4web/main.py +++ b/mu4web/main.py @@ -418,8 +418,8 @@ def search_result(q: str, by: Optional[str], direction: str) -> HTML: if data and key == 'date': dt = datetime.fromtimestamp(int(data)) data = dt.strftime('%Y-%m-%d %H:%M') - rowdata.append(['td', ('a', {'href': '/?id=' + row['msgid']}, data)]) - body.append(['tr', rowdata]) + rowdata.append(('td', ('a', {'href': '/?id=' + row['msgid']}, data))) + body.append(('tr', rowdata)) if len(rows) == 0: return "Inga träffar" -- cgit v1.2.3