forked from 0x2620/pandora
dont call manager, use get
This commit is contained in:
parent
a214d4ec7c
commit
c659ff961b
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ def update(request):
|
|||
if 'info' in data:
|
||||
for oshash in data['info']:
|
||||
info = data['info'][oshash]
|
||||
f = models.File.objects(oshash=oshash)
|
||||
f = models.File.objects.get(oshash=oshash)
|
||||
if f.count()>0:
|
||||
f = f[0]
|
||||
if not f.info:
|
||||
|
|
Loading…
Reference in a new issue