Первая заливка
This commit is contained in:
1 parent
5a628c6acd
commit
576b59c076
6 files changed
+14
-17
No files matched your search
@@ -18,7 +18,7 @@ class roundExcel():
|
||||
pass
|
||||
|
||||
def excround(self):
|
||||
print(self.df )
|
||||
print(self.df, 'qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq')
|
||||
self.df['tabel'] = self.df['login'].str.split('-', expand = True)[1]+self.df['login'].str.split('-', expand = True)[2]
|
||||
file_path = 'media/DailyRoundUp.xlsx'
|
||||
thins = Side(border_style="thin")
|
||||
|
||||
@@ -46,10 +46,11 @@ class DailyRoundUpAPIView(APIView):
|
||||
|
||||
|
||||
re = roundExcel(user)
|
||||
if request.GET.get("excel") == 'round':
|
||||
file_path = re.excround()
|
||||
if request.GET.get("excel") == 'vacation':
|
||||
file_path = re.excelvacation()
|
||||
file_path = getattr(re, request.GET.get("excel"))()
|
||||
# if request.GET.get("excel") == 'round':
|
||||
# file_path = re.excround()
|
||||
# if request.GET.get("excel") == 'vacation':
|
||||
# file_path = re.excelvacation()
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user