joshuarauh commited on
Commit
69b437a
·
verified ·
1 Parent(s): 2a8e458

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -64,7 +64,7 @@ SUBJECT_SUBTOPICS = {
64
  "optimization",
65
  "stokes theorem",
66
  "green's theorem",
67
- "line intergals",
68
  "parametric equations",
69
  "spherical coordinates"
70
  ],
@@ -824,7 +824,7 @@ def generate_question(subject, difficulty, question_type, subtopic, use_enhancem
824
 
825
  request_history.append(now)
826
 
827
- selected_topic = subtopic
828
  logger.debug(f"Using selected subtopic: {selected_topic}")
829
 
830
  difficulty_params = get_difficulty_parameters(difficulty)
 
64
  "optimization",
65
  "stokes theorem",
66
  "green's theorem",
67
+ "line integrals",
68
  "parametric equations",
69
  "spherical coordinates"
70
  ],
 
824
 
825
  request_history.append(now)
826
 
827
+ selected_topic = subtopic if subtopic else random.choice(SUBJECT_SUBTOPICS[subject])
828
  logger.debug(f"Using selected subtopic: {selected_topic}")
829
 
830
  difficulty_params = get_difficulty_parameters(difficulty)