resizebars

This commit is contained in:
rolux 2010-07-06 20:28:42 +02:00
commit fc7882a77b
2 changed files with 44 additions and 32 deletions

View file

@ -252,6 +252,8 @@ Positions
response['data']['items'] = movies.count()
response['data']['pixels'] = r['pixels__count']
response['data']['runtime'] = movies.aggregate(Sum('sort__runtime'))['sort__runtime__sum']
if response['data']['runtime'] == None:
response['data']['runtime'] = 1337
response['data']['size'] = r['size__count']
return render_to_json_response(response)