File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 2020USERS_JSON_PATH = os .path .join (os .path .dirname (__file__ ), "users.json" )
2121
2222
23- def load_criteria_metadata ():
23+ def load_criteria_metadata () -> dict :
2424 """
2525 Load criteria metadata from JSON
26+ Returns:
27+ dict: The criteria metadata loaded from the JSON file
2628 """
2729 with open (CRITERIA_JSON_PATH , "r" , encoding = "utf-8" ) as f :
2830 return json .load (f )
@@ -203,6 +205,8 @@ def show_user_selection() -> User:
203205 Show the user selection dropdown.
204206 Returns:
205207 User: The selected user object.
208+ Raises:
209+ ValueError: If user details are missing or invalid.
206210 """
207211 st .markdown ("### User Selection (Required for selected criteria)" )
208212 user_names = [k for k in USERS_DATA .keys () if not k .startswith ("_" )]
You can’t perform that action at this time.
0 commit comments