From 592e324b5c65cf91ae8d43c675ab25ccaa258d1f Mon Sep 17 00:00:00 2001 From: 7nimor <7nimor@gmail.com> Date: Sat, 7 Feb 2026 17:02:47 +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 b63de68..02b2383 100644 --- a/app/views.py +++ b/app/views.py @@ -807,7 +807,7 @@ class HatchingsViewSet(viewsets.ModelViewSet): 'PartIdCode', 'UnitTypeName' ] good_sums = request.data.get('GoodSum', {}) - if int(good_sums.get('loadingSum',0)) > 0: + if (int(good_sums.get('loadingSum',0)) > 0) or (int(good_sums.get('goodSum',0)) > 0): for key in same_keys: if key in request.data and request.data[key] is not None: poultry_data[key] = request.data[key]