#21: Improve package parameter merging command

This commit is contained in:
Mario Hüttel 2024-11-24 01:52:07 +01:00
parent 15b4257c73
commit f2a8166874

View File

@ -20,6 +20,10 @@ class Command(BaseCommand):
package_param_ids = package_parameters.values_list('parameter_type_id', flat=True) package_param_ids = package_parameters.values_list('parameter_type_id', flat=True)
component_param_ids = component_parameters.values_list('parameter_type_id', flat=True) component_param_ids = component_parameters.values_list('parameter_type_id', flat=True)
# Skip trivial cases
if len(package_param_ids) == 0 or len(component_param_ids) == 0:
continue
self.stdout.write(f'Comp: {str(component)} Found {len(component_param_ids)} different parameters') self.stdout.write(f'Comp: {str(component)} Found {len(component_param_ids)} different parameters')
self.stdout.write(f'\tPackage: {str(component.package)} Found {len(package_param_ids)} different parameters') self.stdout.write(f'\tPackage: {str(component.package)} Found {len(package_param_ids)} different parameters')