fix --> livestock type none on sync_livestock
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user