Первая заливка

This commit is contained in:
iriska-gri committed 2023-11-23 10:59:29 +03:00
1 parent 5a628c6acd
commit 576b59c076
6 files changed
+14 -17

No files matched your search

+1 -1
View File
@@ -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")
+5 -4
View File
@@ -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()