Skip to content

Commit

Permalink
Apply correct result types for AST-like services
Browse files Browse the repository at this point in the history
  • Loading branch information
xispa committed Nov 28, 2024
1 parent 66444a5 commit 070abef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/senaite/ast/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
u"(Susceptible, increased exposure) and R (Resistant)"),
"choices": "0:|1:S|2:I|3:R",
"sort_key": 530,
"result_type": "string",
"result_type": "select",
"point_of_capture": AST_POINT_OF_CAPTURE,
"calculation": AST_CALCULATION_TITLE,
},
Expand All @@ -129,7 +129,7 @@
# XXX This is a choices field, but choices are populated on creation
"choices": "",
"sort_key": 505,
"result_type": "string",
"result_type": "select",
"point_of_capture": AST_POINT_OF_CAPTURE,
"calculation": AST_CALCULATION_TITLE,
},
Expand Down Expand Up @@ -187,7 +187,7 @@
# XXX senaite.app.listing has no support for boolean types (interim)
"type": "boolean",
"sort_key": 540,
"result_type": "string",
"result_type": "select",
"point_of_capture": AST_POINT_OF_CAPTURE,
"calculation": AST_CALCULATION_TITLE,
},
Expand Down
2 changes: 1 addition & 1 deletion src/senaite/ast/setuphandlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def setup_ast_services(portal, update_existing=True):

description = settings.get("description", AUTOGENERATED)
sort_key = settings.get("sort_key", 1000)
result_type = settings.get("result_type", "numeric")
result_type = settings.get("result_type", "select")
poc = settings.get("point_of_capture", AST_POINT_OF_CAPTURE)
calc_name = settings.get("calculation", AST_CALCULATION_TITLE)

Expand Down

0 comments on commit 070abef

Please sign in to comment.