This commit is contained in:
j 2011-02-22 16:42:56 +01:00
parent e0414588ba
commit 1dbdb2f03d
2 changed files with 1 additions and 2 deletions

View file

@ -36,7 +36,7 @@ def get_or_create_file(volume, f):
file.save()
return file
def update_or_create_instance(i, volume, f):
def update_or_create_instance(volume, f):
instance = models.Instance.objects.filter(file__oshash=f['oshash'], volume=f['volume'])
if instance.count()>0:
instance = instance[0]

View file

@ -43,7 +43,6 @@ def _order_query(qs, sort, prefix='sort__'):
sort.append({'operator': '-', 'key': 'year'})
sort.append({'operator': '+', 'key': 'title'})
for e in sort:
operator = e['operator']
if operator != '-':