From 16b979c5028c1d112956d4f47f55da765c37e875 Mon Sep 17 00:00:00 2001 From: 7nimor <7nimor@gmail.com> Date: Sat, 7 Feb 2026 15:51:17 +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 8601aeb..0a5de5a 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: + 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]