Skip to content

Commit b84b05b

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 10350dd commit b84b05b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

reproschema/redcap2reproschema.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -327,15 +327,17 @@ def process_row(
327327

328328
field_type = field.get("Field Type", "")
329329
input_type, value_type = parse_field_type_and_value(field)
330-
330+
331331
# Initialize ui object with common properties
332332
ui_obj = {"inputType": input_type}
333-
333+
334334
# Handle readonly status first - this affects UI behavior
335335
annotation = str(field.get("Field Annotation", "")).upper()
336-
if (field_type in COMPUTE_LIST or
337-
"@READONLY" in annotation or
338-
"@CALCTEXT" in annotation):
336+
if (
337+
field_type in COMPUTE_LIST
338+
or "@READONLY" in annotation
339+
or "@CALCTEXT" in annotation
340+
):
339341
ui_obj["readonlyValue"] = True
340342

341343
rowData["ui"] = ui_obj

0 commit comments

Comments
 (0)