fix --> livestock species
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user