From fb1c42ffafe3f0f3419ab87191e7f4a7cc186d82 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 1 Jun 2017 13:23:38 +0200 Subject: [PATCH] fix update --- pandora/archive/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora/archive/views.py b/pandora/archive/views.py index b1c9ca0e..cad8e5a6 100644 --- a/pandora/archive/views.py +++ b/pandora/archive/views.py @@ -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():