From caad850d4cb1df37fe65a0bdbc94e27aba10007e Mon Sep 17 00:00:00 2001 From: 7nimor <7nimor@gmail.com> Date: Sat, 7 Feb 2026 15:52:18 +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 0a5de5a..26d3f0b 100644 --- a/app/views.py +++ b/app/views.py @@ -808,7 +808,7 @@ class HatchingsViewSet(viewsets.ModelViewSet): ] good_sum = request.data.get('GoodSum', []) print(request.data) - if int(good_sum.get('loadingSum'),0) > 0: + if int(good_sum.get('loadingSum',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]