quiz-generator-v3 / ui /state.py
ecuartasm's picture
Initial commit: AI Course Assessment Generator
217abc3
raw
history blame contribute delete
924 Bytes
"""Global state management for the UI."""
# Global variables to store processed content and generated objectives
processed_file_contents = []
generated_learning_objectives = []
def get_processed_contents():
"""Get the current processed file contents."""
return processed_file_contents
def set_processed_contents(contents):
"""Set the processed file contents."""
global processed_file_contents
processed_file_contents = contents
def get_learning_objectives():
"""Get the current learning objectives."""
return generated_learning_objectives
def set_learning_objectives(objectives):
"""Set the learning objectives."""
global generated_learning_objectives
generated_learning_objectives = objectives
def clear_state():
"""Clear all state."""
global processed_file_contents, generated_learning_objectives
processed_file_contents = []
generated_learning_objectives = []