This commit is contained in:
j 2012-03-11 21:56:01 +01:00
parent c659ff961b
commit cfd7d6a4d9

View file

@ -84,7 +84,7 @@ def update(request):
if 'info' in data: if 'info' in data:
for oshash in data['info']: for oshash in data['info']:
info = data['info'][oshash] info = data['info'][oshash]
f = models.File.objects.get(oshash=oshash) f = models.File.objects.filter(oshash=oshash)
if f.count()>0: if f.count()>0:
f = f[0] f = f[0]
if not f.info: if not f.info: