forked from 0x2620/pandora
fix update
This commit is contained in:
parent
6d867b1a7d
commit
fb1c42ffaf
1 changed files with 2 additions and 1 deletions
|
@ -484,10 +484,11 @@ def editMedia(request, data):
|
|||
models.Instance.objects.filter(file__oshash__in=dont_ignore).update(ignore=False)
|
||||
if ignore or dont_ignore:
|
||||
files = models.File.objects.filter(oshash__in=ignore+dont_ignore)
|
||||
ids = []
|
||||
for i in Item.objects.filter(files__in=files).distinct():
|
||||
i.update_selected()
|
||||
i.update_wanted()
|
||||
ids = []
|
||||
ids.append(i.public_id)
|
||||
if ignore:
|
||||
qs = models.File.objects.filter(oshash__in=ignore, instances__id=None, selected=True)
|
||||
if qs.count():
|
||||
|
|
Loading…
Reference in a new issue