26 spreadsheet_timestamp,
49 return int(self.spreadsheet_timestamp.split()[-1])
57 raise Exception(
'Cannot insert Test2 object whose parent Check2 object is not in the database.')
59 cols =
'check2_id wav_file child_vocs transcription ui_save_data child_code spreadsheet_timestamp'.split()
64 last_ids = db.insert(
'tests2', cols, [row])
65 self.
db_id = last_ids[0]
71 num_rows = db.delete(
'tests2',
'id=?', [self.
db_id])
92 pickle.loads(cur_row[6]),
96 test2_list.append(test2)
103 DBObject.db_select(db, ids)
105 where_cond = DBObject._build_where_cond_from_ids(ids)
107 rows = db.select(
'tests2',
'check2_id wav_file child_code spreadsheet_timestamp child_vocs transcription ui_save_data id'.split(), where_cond)
109 return Test2._build_from_db_rows(rows)
117 DBObject.db_select(db, [check2_id])
119 rows = db.select(
'tests2',
'check2_id wav_file child_code spreadsheet_timestamp child_vocs transcription ui_save_data id'.split(),
' check2_id=?', [check2_id], order_by=
'id')
121 return Test2._build_from_db_rows(rows)