diff options
Diffstat (limited to 'fossee_manim/models.py')
-rw-r--r-- | fossee_manim/models.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fossee_manim/models.py b/fossee_manim/models.py index 240ec1b..9a85c4d 100644 --- a/fossee_manim/models.py +++ b/fossee_manim/models.py @@ -197,8 +197,6 @@ class AnimationStats(models.Model): video_path = models.FileField(null=True, blank=True, upload_to=attachments) def _create_thumbnail(self): - # anime = AnimationStats.objects.get( - # animation=proposal) video_path = self.video_path.path img_output = path.join( tempfile.mkdtemp(), "{0}.jpg".format(self.animation.title) @@ -211,4 +209,4 @@ class AnimationStats(models.Model): # Converting to Python file object with # some Django-specific additions django_file = File(que_file) - self.thumbnail.save(file_name, django_file, save=True) + self.thumbnail.save(file_name, django_file, save=True)
\ No newline at end of file |