(self)
| 1410 | plugin_signals.task_removed.send_robust(sender=self.__class__, task_id=task_id) |
| 1411 | |
| 1412 | def compact(self): |
| 1413 | # Remove all images |
| 1414 | images_path = self.task_path() |
| 1415 | images = [os.path.join(images_path, i) for i in self.scan_images()] |
| 1416 | for im in images: |
| 1417 | try: |
| 1418 | os.unlink(im) |
| 1419 | except Exception as e: |
| 1420 | logger.warning(e) |
| 1421 | |
| 1422 | self.compacted = True |
| 1423 | self.update_size(commit=True) |
| 1424 | |
| 1425 | def check_public_edit(self): |
| 1426 | """ |
no test coverage detected