()
| 204 | |
| 205 | |
| 206 | def _build_generations(): |
| 207 | def csv_record_to_objects(info): |
| 208 | yield Generation(id=int(info[0]), region_id=int(info[1]), name=info[2]) |
| 209 | |
| 210 | build_generic((Generation,), "generations.csv", csv_record_to_objects) |
| 211 | |
| 212 | def csv_record_to_objects(info): |
| 213 | yield GenerationName( |
| 214 | generation_id=int(info[0]), language_id=int(info[1]), name=info[2] |
| 215 | ) |
| 216 | |
| 217 | build_generic((GenerationName,), "generation_names.csv", csv_record_to_objects) |
| 218 | |
| 219 | |
| 220 | ############# |
no test coverage detected