Поз
This commit is contained in:
1 parent
709aaec60c
commit
9139c47da7
11 files changed
+206
-31
No files matched your search
@@ -210,6 +210,7 @@ class DailyRoundUpAPIView(APIView):
|
||||
|
||||
|
||||
def post(self, request):
|
||||
|
||||
user = DictEmployee.objects.using('user_directory').filter(deleted=0).values('login', 'id')
|
||||
dfuser = pd.DataFrame.from_records(user)
|
||||
|
||||
@@ -262,10 +263,12 @@ class DailyRoundUpAPIView(APIView):
|
||||
pos = DailyRoundUp.objects.values('position__name', 'position').filter(position=6,todaysDate=date.today()).annotate(Count('user'))
|
||||
|
||||
|
||||
print('-------', pos)
|
||||
|
||||
mess = "Файл загружен"
|
||||
|
||||
except Exception as e:
|
||||
print(e, '--------jjjjjjjjjjjjjjjjjj------------------------------')
|
||||
pos=''
|
||||
mess = 'Файл не найден'
|
||||
|
||||
|
||||
@@ -306,6 +309,7 @@ class DailyloadAPIView(APIView):
|
||||
result[row['department']]=[{'login':row['login'],'fio':row['fio'], 'post':row['post']}]
|
||||
print(result, '111111111111111111111')
|
||||
daily = result
|
||||
|
||||
|
||||
else:
|
||||
pos=''
|
||||
|
||||
Reference in new issue
Block a user