修改为count_workday
This commit is contained in:
parent
1ae6e22b00
commit
264da03d4e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue