broadfield-dev commited on
Commit
511c5d1
·
verified ·
1 Parent(s): 6948cd0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -678,7 +678,7 @@ def handle_commit_file_changes(hf_api_key_ui, ui_space_name_part, ui_owner_name_
678
  "is_structure_block": False
679
  })
680
  # Re-sort the cache to maintain consistent order
681
- parsed_code_blocks_state_cache.sort(key=lambda b: (0, b["filename"]) if b.get("is_structure_block") else (1, b["filename")))
682
 
683
  # Regenerate markdown and preview from the updated cache
684
  _formatted_md_out, _detected_preview_out, _download_btn_out = _generate_ui_outputs_from_cache(owner_to_use, ui_space_name_part)
 
678
  "is_structure_block": False
679
  })
680
  # Re-sort the cache to maintain consistent order
681
+ parsed_code_blocks_state_cache.sort(key=lambda b: (0, b["filename"]) if b.get("is_structure_block") else (1, b["filename"]))
682
 
683
  # Regenerate markdown and preview from the updated cache
684
  _formatted_md_out, _detected_preview_out, _download_btn_out = _generate_ui_outputs_from_cache(owner_to_use, ui_space_name_part)