Статистика
This commit is contained in:
1 parent
8f701420a9
commit
59544a7b2c
5 files changed
+32
-12
No files matched your search
@@ -230,7 +230,7 @@ class loadExcel():
|
||||
df3.loc[(df3['e'] == 'Доп н/д'), 'e'] = 'nd'
|
||||
df3.loc[(df3['e'] == 'Доп в/л'), 'e'] = 'vl'
|
||||
df3['d'] = df3['d'].astype(int)
|
||||
print(df3)
|
||||
|
||||
for ind in df3.index:
|
||||
# print(df3['login'][ind])
|
||||
#
|
||||
|
||||
@@ -43,7 +43,7 @@ class DailyRoundUpAPIView(APIView):
|
||||
def get(self, request):
|
||||
|
||||
user = DictEmployee.objects.filter(deleted=0).values('login', 'department', 'familyname', 'name', 'parentname').order_by('id_dict_department__order_department')
|
||||
print(user,' helloooooooooooo')
|
||||
|
||||
|
||||
re = roundExcel(user)
|
||||
file_path = getattr(re, request.GET.get("excel"))()
|
||||
@@ -128,6 +128,6 @@ class DailyloadAPIView(APIView):
|
||||
class SearchUserAPIView(APIView):
|
||||
def post(self, request):
|
||||
f= DictEmployee.objects.values('familyname').filter(fio__icontains=request.data['searchname'])
|
||||
print(f, '-----------------------------')
|
||||
|
||||
return Response('')
|
||||
|
||||
Reference in new issue
Block a user