Skip to content

Commit f2e859a

Browse files
Addressing PR comments
1 parent 2f52610 commit f2e859a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

subject_criteria_builder.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@
2020
USERS_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("_")]

0 commit comments

Comments
 (0)