Исправление замечаний, описание компонентов
This commit is contained in:
1 parent
f38ed176e9
commit
8c5b01f6d4
18 files changed
+207
-195
No files matched your search
@@ -162,7 +162,7 @@ class roundExcel():
|
||||
|
||||
def excelvacation(self):
|
||||
|
||||
print('helooooooooooooooooooooooooooooooooooooo')
|
||||
pass
|
||||
|
||||
|
||||
class loadExcel():
|
||||
@@ -232,10 +232,6 @@ class loadExcel():
|
||||
df3['d'] = df3['d'].astype(int)
|
||||
|
||||
for ind in df3.index:
|
||||
# print(df3['login'][ind])
|
||||
#
|
||||
|
||||
GeneralVacation.objects.create(login=df3['login'][ind], planned_date=df3['c'][ind], count_days=df3['d'][ind], type_of_vacation=df3['e'][ind], start_work_period=df3['f'][ind])
|
||||
# DailyRoundUp.objects.update_or_create(todaysDate=datetime.strptime(datas, '%d.%m.%Y').strftime('%Y-%m-%d'),
|
||||
# user=df3['login'][ind], defaults={'position':base})
|
||||
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ class DailyRoundUpAPIView(APIView):
|
||||
|
||||
|
||||
re = roundExcel(user)
|
||||
print( request.GET.get("excel"), '-------------------------------')
|
||||
|
||||
file_path = getattr(re, request.GET.get("excel"))()
|
||||
# if request.GET.get("excel") == 'round':
|
||||
# file_path = re.excround()
|
||||
|
||||
Reference in new issue
Block a user