Эксель

This commit is contained in:
iriska-gri committed 2023-11-24 15:41:40 +03:00
1 parent 55fe8f7fa0
commit fa1b17c64d
3 files changed
+5 -2

No files matched your search

+3
View File
@@ -93,6 +93,7 @@ class roundExcel():
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
@@ -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)
Binary file not shown.
+2 -2
View File
@@ -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