From 25d794e80342ce4d53a32a68e5015b3b8a1fe497 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 17 Nov 2014 16:56:30 +0000 Subject: [PATCH] create clips for all annotations --- pandora/annotation/models.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pandora/annotation/models.py b/pandora/annotation/models.py index d99cabd4..f8e16fd7 100644 --- a/pandora/annotation/models.py +++ b/pandora/annotation/models.py @@ -158,12 +158,8 @@ class Annotation(models.Model): self.sortvalue = None self.languages = None - #no clip or update clip - if self.layer in settings.CONFIG.get('clipLayers', []): - if not self.clip or self.start != self.clip.start or self.end != self.clip.end: - self.clip, created = Clip.get_or_create(self.item, self.start, self.end) - elif self.clip: - self.clip = None + if not self.clip or self.start != self.clip.start or self.end != self.clip.end: + self.clip, created = Clip.get_or_create(self.item, self.start, self.end) super(Annotation, self).save(*args, **kwargs) if set_public_id: