Commit d196cfba authored by Valentin Samir's avatar Valentin Samir

[tv] Trie non sensible à la casse des chaines tv/stations radio

parent b7302b8d
......@@ -84,9 +84,10 @@ def tv(request):
"http://%stv.crans.org:8000/%s" % (userpass, params[0]),
image_url_for_channel(params[1]))
)
tnt.sort()
sat.sort()
radio.sort()
key = lambda s: s[0].lower()
tnt.sort(key=key)
sat.sort(key=key)
radio.sort(key=key)
params={ 'tnt' : tnt, 'sat': sat, 'radio': radio, 'user': request.user }
return django.shortcuts.render_to_response("tv/index.html", params, context_instance=RequestContext(request))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment