forked from 0x2620/pandora
file.item
This commit is contained in:
parent
1d38cede3b
commit
d6a1ec4266
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ def update_or_create_instance(volume, f):
|
||||||
instance = models.Instance.objects.filter(name=f['name'], folder=f['folder'], volume=volume)
|
instance = models.Instance.objects.filter(name=f['name'], folder=f['folder'], volume=volume)
|
||||||
if instance.count()>0:
|
if instance.count()>0:
|
||||||
#same path, other oshash, keep path/item mapping, remove instance
|
#same path, other oshash, keep path/item mapping, remove instance
|
||||||
item = instance[0].item
|
item = instance[0].file.item
|
||||||
instance.delete()
|
instance.delete()
|
||||||
else: #new instance
|
else: #new instance
|
||||||
item = None
|
item = None
|
||||||
|
|
Loading…
Reference in a new issue