author | Thierry Florac <thierry.florac@onf.fr> |
Tue, 19 Sep 2017 11:02:29 +0200 | |
changeset 51 | e96da5ef6539 |
parent 50 | 03d7f86e8ceb |
child 52 | d0f7e82d9117 |
--- a/src/pyams_media/video.py Tue Sep 19 11:01:45 2017 +0200 +++ b/src/pyams_media/video.py Tue Sep 19 11:02:29 2017 +0200 @@ -135,6 +135,7 @@ self.thumbnail = annotations[THUMBNAIL_ANNOTATION_KEY] = image locate(self.thumbnail, self.video) registry.notify(ObjectAddedEvent(image, self.video)) + transaction.commit() if self.thumbnail is not None: size_name = '{0[0]}x{0[1]}'.format(self.get_image_size()) if thumbnail_name != size_name: