MCPcopy Create free account
hub / github.com/diffgram/diffgram / get_from_video_label_number

Method get_from_video_label_number

shared/database/video/sequence.py:245–265  ·  view source on GitHub ↗

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
    )

Source from the content-addressed store, hash-verified

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(

Callers 2

updateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected