markobinario commited on
Commit
e230254
·
verified ·
1 Parent(s): 7211994

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -31,6 +31,9 @@ def get_course_recommendations(stanine, gwa, strand, hobbies):
31
  if gwa < 75 or gwa > 100:
32
  return "GWA must be between 75-100", "", "", "", "", ""
33
 
 
 
 
34
  if strand not in ["STEM", "ABM", "HUMSS", "GAS", "TVL"]:
35
  return "Strand must be one of: STEM, ABM, HUMSS, GAS, TVL", "", "", "", "", ""
36
 
 
31
  if gwa < 75 or gwa > 100:
32
  return "GWA must be between 75-100", "", "", "", "", ""
33
 
34
+ # Normalize strand to uppercase for case-insensitive matching
35
+ strand = strand.upper()
36
+
37
  if strand not in ["STEM", "ABM", "HUMSS", "GAS", "TVL"]:
38
  return "Strand must be one of: STEM, ABM, HUMSS, GAS, TVL", "", "", "", "", ""
39