fix --> livestock species

This commit is contained in:
2026-01-24 15:03:04 +03:30
parent c3511590b7
commit 6d55f1cd3b
5 changed files with 59 additions and 1 deletions

View File

@@ -179,4 +179,11 @@ class TagDistributionService:
remaining_tag_count=Sum('remaining_tag_count'),
)
distributions = TagDistribution.objects.filter(
Q(assigner_org=org) |
Q(assigned_org=org),
is_closed=is_closed,
)
print(distributions)
return data

View File

@@ -9,6 +9,14 @@ from apps.tag.exceptions import TagException
from apps.tag.models import Tag, TagBatch
from apps.tag.tools import tag_code_serial_scanning
SPECIES_MAP = {
'cow': 1,
'buffalo': 2,
'camel': 3,
'sheep': 4,
'goat': 5,
}
class TagService:
"""