(self, sequence_id)
Get all sequence shots from shots table in db
Get all sequence shots from shots table in db
Get all sequence shots from shots table in db
def get_sequence_shots(self, sequence_id):
        """
        Get all sequence shots from shots table in db
        """

        connection = sqlite3.connect(self.SQL_FILE_PATH)
        cursor = connection.cursor()

        cursor.execute("SELECT * FROM shots WHERE sequence=:sequence",
                       {'sequence': sequence_id})

        shot_tuples = cursor.fetchall()
        shot_objects = entities.Converter.convert_to_shot(shot_tuples)

        connection.close()

        # Clear list and append assets
        del self.sequence_shots[:]
        for shot in shot_objects:
            self.sequence_shots.append(shot)
def get_sequence_shots ( self , sequence_id ) : connection = sqlite3 . connect ( self . SQL_FILE_PATH ) cursor = connection . cursor ( ) cursor . execute ( "SELECT * FROM shots WHERE sequence=:sequence" , { 'sequence' : sequence_id } ) shot_tuples = cursor . fetchall ( ) shot_objects = entities . Converter . convert_to_shot ( shot_tuples ) connection . close ( ) # Clear list and append assets del self . sequence_shots [ : ] for shot in shot_objects : self . sequence_shots . append ( shot )