From 264da03d4efa1c39a09a641a7be9a83f34188f76 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 14 Feb 2022 10:12:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BAcount=5Fworkday?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hb_server/apps/srm/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hb_server/apps/srm/views.py b/hb_server/apps/srm/views.py index d92adb7..8e010b8 100644 --- a/hb_server/apps/srm/views.py +++ b/hb_server/apps/srm/views.py @@ -82,7 +82,7 @@ class AtWorkCountView(CreateAPIView): from workalendar.asia import China cal = China() - workday_count = cal.get_working_days_delta( + count_workday = cal.get_working_days_delta( date(vdata['year'], vdata['month'], 1), (date(vdata['year'], vdata['month'], 1).replace(day=1) + timedelta(days=32)).replace(day=1) - timedelta(days=1) @@ -100,5 +100,5 @@ class AtWorkCountView(CreateAPIView): ) ret_list = list(ret) for i in ret: - i['workday_count'] = workday_count + i['count_workday'] = count_workday return Response(ret_list)