diff --git a/src/general_vacation/excel.py b/src/general_vacation/excel.py index f6aef0e03..61cc6258d 100644 --- a/src/general_vacation/excel.py +++ b/src/general_vacation/excel.py @@ -92,11 +92,12 @@ class roundExcel(): ws.merge_cells(start_row=k, start_column=2, end_row=k, end_column=12) l = pd.DataFrame(self.df[(self.df.department==i)][['tabel', 'familyname', 'name', 'parentname']]) + zap = [7, 9, 11] for x in range(len(l)): k=k+1 - + ws.cell(row = k, column = 1).value = numb ws.cell(row = k, column = 1).font = Font(name='Times New Roman', size=10, bold=True) @@ -104,6 +105,8 @@ class roundExcel(): ws.cell(row = k, column = 3).value = l.iloc[x]['familyname'] ws.cell(row = k, column = 4).value = l.iloc[x]['name'] ws.cell(row = k, column = 5).value = l.iloc[x]['parentname'] + ws.cell(row = k, column = 6).value = '=If(H'+str(k)+'=1,"",1)' + print(k, '------------------------------') for h in zap: ws.cell(row = k, column = h).border = Border(top=thins, bottom=thins, left=thins, right=thins) @@ -117,7 +120,7 @@ class roundExcel(): numb=numb+1 - + k=k+1 ws.cell(row = k+1, column=6).value = "=SUM(F6:F"+str(k-1)+")" diff --git a/src/media/DailyRoundUp.xlsx b/src/media/DailyRoundUp.xlsx index 330dd9c16..a1f9209c8 100644 Binary files a/src/media/DailyRoundUp.xlsx and b/src/media/DailyRoundUp.xlsx differ diff --git a/src/navigation/views.py b/src/navigation/views.py index 9ed911366..cd5e1ea3c 100644 --- a/src/navigation/views.py +++ b/src/navigation/views.py @@ -133,8 +133,8 @@ class CarouselsAPIView(ListAPIView): result.append(allbirthday) - print(result, 'result ------------------------------------') - print(allbirthday, 'allbirthday ------------------------------------') + # print(result, 'result ------------------------------------') + # print(allbirthday, 'allbirthday ------------------------------------') # print(birthday, 'birthday ------------------------------------') # result = [allbirthday] + birthday+ result