Caution: Also removes associated file Under assumption that if we are archiving an input we don't want the file.
(self)
| 198 | process_media_queue_manager.router(item) |
| 199 | |
| 200 | def archive_input(self): |
| 201 | """ |
| 202 | Caution: Also removes associated file |
| 203 | Under assumption that if we are archiving an input we don't want the file. |
| 204 | """ |
| 205 | |
| 206 | for input in self.input_list: |
| 207 | input.archived = True |
| 208 | self.remove_associated_file(input) |
| 209 | self.remove_copied_file(input) |
| 210 | self.session.add(input) |
| 211 | |
| 212 | def remove_copied_file(self, input): |
| 213 | if input.mode == 'copy_file' and input.newly_copied_file: |
no test coverage detected