fix reversed sorting

This commit is contained in:
Martijn Voncken 2008-03-01 11:10:45 +00:00
parent c04e9701ae
commit b10cdb22d1
2 changed files with 2 additions and 1 deletions

View File

@ -189,7 +189,7 @@ class index:
log.debug('Sorting Failed')
if vars.order == 'up':
torrent_list = reversed(torrent_list)
torrent_list = list(reversed(torrent_list))
setcookie("order", vars.order)
setcookie("sort", vars.sort)

View File

@ -35,6 +35,7 @@ import lib.webpy022 as web
import lib.newforms_plus as forms
from render import render
from utils import logcall
import page_decorators as deco
from config import register_block as register_config_block
from config import unregister_block as unregister_config_block