change item passage attribute to passage_id

This commit is contained in:
Josh Burman 2021-12-16 16:26:26 +00:00
parent c7c9662968
commit 9dcc4ae513
2 changed files with 4 additions and 4 deletions

View File

@ -19,11 +19,11 @@ def items_csv_to_dict(items_csv_reader, irt_model):
if key == 2:
# make sure id exists
if row[key]:
item['passage'] = row[key]
# b param - tmep fix! use irt model b param for proper reference
item['passage_id'] = row[key]
# b param - temp fix! use irt model b param for proper reference
elif key == (1 - len(headers)):
item['b_param'] = row[key]
elif key > 1:
elif key > 2:
item['attributes'].append({
'id': col,
'value': row[key],

View File

@ -8,7 +8,7 @@ from lib.irt.item_information_function import ItemInformationFunction
class Item(BaseModel):
id: int
passage: Optional[int]
passage_id: Optional[int]
attributes: List[Attribute]
b_param: float = 0.00