For example, in context of creating these in advance we don't want skip lock, because we already know it's going to exist.
(
session,
video_file_id,
label_file_id,
number,
archived = False
)
| 243 | |
| 244 | @staticmethod |
| 245 | def get_from_video_label_number( |
| 246 | session, |
| 247 | video_file_id, |
| 248 | label_file_id, |
| 249 | number, |
| 250 | archived = False |
| 251 | ): |
| 252 | |
| 253 | """ |
| 254 | |
| 255 | For example, in context of creating these in advance |
| 256 | we don't want skip lock, because we already know it's going to exist. |
| 257 | """ |
| 258 | |
| 259 | sequence = session.query(Sequence).filter( |
| 260 | Sequence.video_file_id == video_file_id, |
| 261 | Sequence.label_file_id == label_file_id, |
| 262 | Sequence.number == number, |
| 263 | Sequence.archived == archived).first() |
| 264 | |
| 265 | return sequence |
| 266 | |
| 267 | @staticmethod |
| 268 | def update_single_existing_sequence( |
no outgoing calls
no test coverage detected