From 7517bf89b7a8a3b901bb9b9231deb6689d1cfffc Mon Sep 17 00:00:00 2001 From: Martijn Voncken Date: Sat, 12 Jul 2008 11:26:47 +0000 Subject: [PATCH] label: remember filters --- deluge/ui/webui/render.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deluge/ui/webui/render.py b/deluge/ui/webui/render.py index 936868d5b..bf24cb913 100644 --- a/deluge/ui/webui/render.py +++ b/deluge/ui/webui/render.py @@ -177,7 +177,8 @@ def ftime(val): def template_get(key): val = getattr(web.input(**{key:None}), key) if not val: - return getcookie(key) + val = getcookie(key) + return val template.Template.globals.update({ 'sort_head': template_sort_head,