change item passage attribute to passage_id
This commit is contained in:
parent
c7c9662968
commit
9dcc4ae513
@ -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],
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user