mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-09 01:48:40 +00:00
filter_cat: doing it wrong, but it works..
This commit is contained in:
parent
204b6a005a
commit
3e3c0f718a
1 changed files with 7 additions and 1 deletions
|
@ -92,7 +92,13 @@ class index:
|
||||||
|
|
||||||
#cookies are a delicious delecacy.
|
#cookies are a delicious delecacy.
|
||||||
if not vars.sort: #no arguments, default to coockies.
|
if not vars.sort: #no arguments, default to coockies.
|
||||||
vars.update(cookies())
|
newvars = cookies()
|
||||||
|
if vars.filter_cat: #i'm doing it wrong :( , but it works..
|
||||||
|
newvars['filter_cat'] = vars.filter_cat
|
||||||
|
newvars['filter_value'] = vars.filter_value
|
||||||
|
vars.update(newvars)
|
||||||
|
|
||||||
|
|
||||||
else: #has arguments:set cookies from arguments.
|
else: #has arguments:set cookies from arguments.
|
||||||
for key in ["sort", "order", "filter_cat","filter_value"]:
|
for key in ["sort", "order", "filter_cat","filter_value"]:
|
||||||
value = getattr(vars, key) or ""
|
value = getattr(vars, key) or ""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue