fix task
This commit is contained in:
parent
8117269fcc
commit
b5b4afec5e
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ def get_or_create_file(volume, f):
|
||||||
return file
|
return file
|
||||||
|
|
||||||
def update_or_create_instance(volume, f):
|
def update_or_create_instance(volume, f):
|
||||||
instance = models.Instance.objects.filter(file__oshash=f['oshash'], volume=f['volume'])
|
instance = models.Instance.objects.filter(file__oshash=f['oshash'], volume=volume)
|
||||||
if instance.count()>0:
|
if instance.count()>0:
|
||||||
instance = instance[0]
|
instance = instance[0]
|
||||||
updated = False
|
updated = False
|
||||||
|
|
Loading…
Reference in a new issue