change map structure of rancher statistics

This commit is contained in:
2025-09-22 15:22:04 +03:30
parent 383cbc4162
commit ecb1049681
2 changed files with 5 additions and 4 deletions

View File

@@ -127,7 +127,8 @@ class QuotaDistributionSerializer(serializers.ModelSerializer):
if 'rancher' in self.context.keys():
# rancher herd & live stock statistics
representation['rancher_statistics'] = get_rancher_statistics(self.context['rancher'])
livestock_counts_list, livestock_counts_dict = get_rancher_statistics(self.context['rancher'])
representation['rancher_statistics'] = livestock_counts_list
# rancher live stock statistics by quota distributions
representation['rancher_quota_weight_statistics'] = rancher_quota_weight(