4.5 and clear checkboxes
This commit is contained in:
@@ -204,6 +204,14 @@ def apply_actions_and_regenerate(root_dir, data, student_id, actions, notes_laye
|
||||
dirty_labels.add(label)
|
||||
print(f" > Updated score for {label} to {act['value']}")
|
||||
|
||||
elif act['type'] == 'clear_all':
|
||||
for fb in feedbacks:
|
||||
fb["to_delete"] = True
|
||||
if fb.get("box_2d"):
|
||||
fb["norectangle"] = True
|
||||
dirty_labels.add(label)
|
||||
print(f" > Cleared all feedbacks in {label}")
|
||||
|
||||
elif act['type'] == 'del_global':
|
||||
if act['index'] < len(global_fb):
|
||||
global_fb[act['index']]["to_delete"] = True
|
||||
|
||||
Reference in New Issue
Block a user