Refactor create_or_update_starter_projects function in setup.py for better code organization

The create_or_update_starter_projects function in setup.py has been refactored to improve code organization. This change separates the function definition from the rest of the code, making it easier to read and maintain.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-06-22 20:46:17 -03:00
commit dc259c7d57

View file

@ -559,7 +559,7 @@ async def create_or_update_starter_projects(get_all_components_coro: Awaitable[d
project_icon_bg_color,
) = get_project_data(project)
updated_project_data = update_projects_components_with_latest_component_versions(
project_data, all_types_dict
project_data.copy(), all_types_dict
)
updated_project_data = update_edges_with_latest_component_versions(updated_project_data)
try: