fix --> livestock type none on sync_livestock

This commit is contained in:
2026-02-10 12:53:56 +03:30
parent 2c87642f56
commit 858af1231b

View File

@@ -106,7 +106,7 @@ class Command(BaseCommand):
birthdate = parse_birthdate(temp.birthdate)
gender = 1 if temp.gender == 'M' else 2
livestock_type = livestock_types.get(temp.species)
weight_type = livestock_type.weight_type
weight_type = livestock_type.weight_type if livestock_type else 'L'
key = (self.normalize_herd_code(temp.herd_code), birthdate, gender)
livestock = livestock_map.get(key)