From 8b9aef56b40eb1181ce81f182ec9ddcfc271325d Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 14 Jul 2013 16:58:01 +0000 Subject: [PATCH] fix setting edit icon --- pandora/edit/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pandora/edit/models.py b/pandora/edit/models.py index 59b8c10e..5f6feaf2 100644 --- a/pandora/edit/models.py +++ b/pandora/edit/models.py @@ -5,6 +5,8 @@ from __future__ import division, with_statement import re import os import shutil +from glob import glob +import subprocess import ox from django.conf import settings @@ -179,7 +181,7 @@ class Edit(models.Model): self.poster_frames = tuple(poster_frames) self.save() for i in self.poster_frames: - s = Item.objects.filter(itemId=i['item']) + qs = Item.objects.filter(itemId=i['item']) if qs.count() > 0: frame = qs[0].frame(i['position']) if frame: