Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -654,7 +654,7 @@ def handle_commit_file_changes(hf_api_key_ui, ui_space_name_part, ui_owner_name_
|
|
654 |
"is_binary": False,
|
655 |
"is_structure_block": False
|
656 |
})
|
657 |
-
parsed_code_blocks_state_cache.sort(key=lambda b: (0, b["filename"]) if b.get("is_structure_block") else (1, b["filename")
|
658 |
|
659 |
_formatted_md_out, _detected_preview_out, _download_btn_out = _generate_ui_outputs_from_cache(owner_to_use, ui_space_name_part)
|
660 |
|
|
|
654 |
"is_binary": False,
|
655 |
"is_structure_block": False
|
656 |
})
|
657 |
+
parsed_code_blocks_state_cache.sort(key=lambda b: (0, b["filename"]) if b.get("is_structure_block") else (1, b["filename"])
|
658 |
|
659 |
_formatted_md_out, _detected_preview_out, _download_btn_out = _generate_ui_outputs_from_cache(owner_to_use, ui_space_name_part)
|
660 |
|