(file, db)
| 135 | exit(1) |
| 136 | |
| 137 | def outputDimensionsToFile(file, db): |
| 138 | |
| 139 | with db: |
| 140 | cur = db.cursor() |
| 141 | cur.execute("SELECT d.dim_id, e.value_name from DIMENSION d, ITEM_ATTR_ENUM e where d.attr_id = e.attr_id and d.value_id = e.value_id and e.value_name != \'article\'") |
| 142 | rows = cur.fetchall() |
| 143 | json.dump(rows, file) |
| 144 | |
| 145 | def readTypes(types): |
| 146 | for theType in types: |
no test coverage detected