From 426f38b9c6de0fdcc8d8cc1e5b57ade1d0d52a07 Mon Sep 17 00:00:00 2001 From: 7nimor <7nimor@gmail.com> Date: Sat, 7 Feb 2026 15:54:55 +0330 Subject: [PATCH] update hatching --- app/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views.py b/app/views.py index 26d3f0b..6be795b 100644 --- a/app/views.py +++ b/app/views.py @@ -975,7 +975,7 @@ class HatchingsViewSet(viewsets.ModelViewSet): hatching.PedigreeName = BREED_STANDARDIZATION[hatching.PedigreeName] hatching.KillingAve = ave_age hatching.samasat_discharge_percentage = int( - ((hatching.Evacuation + bars_quantity) / hatching.ChickCountSum) * 100) + ((hatching.Evacuation + bars_quantity) / hatching.ChickCountSum) * 100) if hatching.ChickCountSum > 0 else 0 hatching.save() else: print('تعداد حمل صفر است')