filter_cat: doing it wrong, but it works..
This commit is contained in:
parent
204b6a005a
commit
3e3c0f718a
@ -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…
x
Reference in New Issue
Block a user