From f433495592785f414d2dfc76d74fcca59800981d Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 9 Jul 2014 18:29:17 +0000 Subject: [PATCH] fix tasks.update_info --- pandora/archive/tasks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora/archive/tasks.py b/pandora/archive/tasks.py index 91e42d75..ac0280b2 100644 --- a/pandora/archive/tasks.py +++ b/pandora/archive/tasks.py @@ -82,10 +82,11 @@ def update_files(user, volume, files): @task(ignore_results=True, queue='default') def update_info(user, info): + user = models.User.objects.get(username=user) files = models.File.objects.filter(oshash__in=info.keys()) for f in files: if not f.info: - f.update_info(data['info'][f.oshash], user) + f.update_info(info[f.oshash], user) f.save() for i in Item.objects.filter(files__in=files).distinct(): i.update_selected()