()
| 388 | |
| 389 | |
| 390 | def _build_characteristics(): |
| 391 | def csv_record_to_objects(info): |
| 392 | yield Characteristic( |
| 393 | id=int(info[0]), stat_id=int(info[1]), gene_mod_5=int(info[2]) |
| 394 | ) |
| 395 | |
| 396 | build_generic((Characteristic,), "characteristics.csv", csv_record_to_objects) |
| 397 | |
| 398 | def csv_record_to_objects(info): |
| 399 | yield CharacteristicDescription( |
| 400 | characteristic_id=int(info[0]), |
| 401 | language_id=int(info[1]), |
| 402 | description=info[2], |
| 403 | ) |
| 404 | |
| 405 | build_generic( |
| 406 | (CharacteristicDescription,), "characteristic_text.csv", csv_record_to_objects |
| 407 | ) |
| 408 | |
| 409 | |
| 410 | ############### |
no test coverage detected