Сохранит файл

This commit is contained in:
iriska-gri committed 2023-10-19 15:26:55 +03:00
1 parent 5666c46de8
commit bb27a5360b
4 files changed
+13 -3

No files matched your search

+2 -2
View File
@@ -200,12 +200,12 @@ class DailyRoundUpAPIView(APIView):
wb.save(file_path)
urllib.request.urlretrieve(file_path, 'Пупка.xlsx')
# urllib.request.urlretrieve(file_path, 'Пупка.xlsx')
# file_path = 'media/DailyRoundUp.xlsx'
return Response('')
return Response(file_path)
# with ExcelWriter(file_path, mode="a" if os.path.exists(file_path) else "w" , if_sheet_exists='replace') as writer:
# #