Skip to content

Commit

Permalink
print to see bytes from excel
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanJaeger committed Jul 13, 2023
1 parent 4bba95b commit 32f8bee
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions chats/apps/api/v1/dashboard/viewsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,18 @@ def export_dashboard(self, request, *args, **kwargs):
startcol=0,
index=False,
)
print("antes do seek\n", excel_buffer.getvalue())
print(
"------------------------------------------------------------------------------------------------------"
)
print(
"------------------------------------------------------------------------------------------------------"
)
print(
"------------------------------------------------------------------------------------------------------"
)
excel_buffer.seek(0) # Move o cursor para o início do buffer
print("depois do seek:\n", excel_buffer.getvalue())

response = HttpResponse(
excel_buffer.read(),
Expand Down

0 comments on commit 32f8bee

Please sign in to comment.