Sina Media Lab
		
	commited on
		
		
					Commit 
							
							·
						
						2a4a631
	
1
								Parent(s):
							
							58d0b6d
								
Updates
Browse files
    	
        app.py
    CHANGED
    
    | @@ -102,8 +102,9 @@ def load_module(module_name): | |
| 102 | 
             
            def generate_new_question(module_name):
         | 
| 103 | 
             
                module = load_module(module_name)
         | 
| 104 | 
             
                question_data = module.generate_question()
         | 
| 105 | 
            -
                # Ensure 'answered' is initialized to False
         | 
| 106 | 
             
                question_data['answered'] = False
         | 
|  | |
| 107 | 
             
                return question_data
         | 
| 108 |  | 
| 109 | 
             
            def navigate_question(direction):
         | 
|  | |
| 102 | 
             
            def generate_new_question(module_name):
         | 
| 103 | 
             
                module = load_module(module_name)
         | 
| 104 | 
             
                question_data = module.generate_question()
         | 
| 105 | 
            +
                # Ensure 'answered' is initialized to False and add the 'module' key
         | 
| 106 | 
             
                question_data['answered'] = False
         | 
| 107 | 
            +
                question_data['module'] = module_name  # Add the module name to the question data
         | 
| 108 | 
             
                return question_data
         | 
| 109 |  | 
| 110 | 
             
            def navigate_question(direction):
         | 
