condition = super().from_table_row(db_conn, row)
assert isinstance(condition, Condition)
for title_row in db_conn.exec('SELECT * FROM condition_titles '
- 'WHERE parent_id = ?', (row[0],)):
+ 'WHERE parent = ?', (row[0],)):
condition.title.history[title_row[1]]\
= title_row[2] # pylint: disable=no-member
for desc_row in db_conn.exec('SELECT * FROM condition_descriptions '
- 'WHERE parent_id = ?', (row[0],)):
+ 'WHERE parent = ?', (row[0],)):
condition.description.history[desc_row[1]]\
= desc_row[2] # pylint: disable=no-member
return condition