aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-07-27 22:35:18 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-07-27 22:35:18 +0200
commit66579fa4ab238f686d88e36436dc2f82c8075070 (patch)
tree0ef8c58ab1e223aea21b030340c9de6bb5d506fe
parentMove html components to own module. (diff)
downloadmu4web-66579fa4ab238f686d88e36436dc2f82c8075070.tar.gz
mu4web-66579fa4ab238f686d88e36436dc2f82c8075070.tar.xz
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...
-rw-r--r--mu4web/main.py4
1 files 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"