fixed 'The variable binary_file_data does not seem to be defined for all execution paths' in API

pull/61/MERGE
13621160019@163.com 2021-08-15 13:14:35 +08:00
parent edbd8bff42
commit 6de60a8f0e
62 changed files with 62 additions and 0 deletions

View File

@ -30,6 +30,7 @@ def export(result, space_name, reporting_start_datetime_local, reporting_end_dat
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -41,6 +41,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -40,6 +40,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -39,6 +39,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -40,6 +40,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -41,6 +41,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -39,6 +39,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -40,6 +40,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -41,6 +41,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -40,6 +40,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -30,6 +30,7 @@ def export(result, space_name, reporting_start_datetime_local, reporting_end_dat
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -40,6 +40,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -40,6 +40,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -40,6 +40,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -40,6 +40,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -40,6 +40,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -39,6 +39,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -40,6 +40,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -41,6 +41,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -40,6 +40,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -28,6 +28,7 @@ def export(result, space_name):
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -30,6 +30,7 @@ def export(result, space_name, reporting_start_datetime_local, reporting_end_dat
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -37,6 +37,7 @@ def export(report, name, reporting_start_datetime_local, reporting_end_datetime_
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -34,6 +34,7 @@ def export(result, name, reporting_start_datetime_local, reporting_end_datetime_
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -34,6 +34,7 @@ def export(result, name, reporting_start_datetime_local, reporting_end_datetime_
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -30,6 +30,7 @@ def export(result, space_name, reporting_start_datetime_local, reporting_end_dat
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -40,6 +40,7 @@ def export(result,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -36,6 +36,7 @@ def export(report, name, reporting_start_datetime_local, reporting_end_datetime_
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -33,6 +33,7 @@ def export(result, name, reporting_start_datetime_local, reporting_end_datetime_
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -30,6 +30,7 @@ def export(result, space_name, reporting_start_datetime_local, reporting_end_dat
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -40,6 +40,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -39,6 +39,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -39,6 +39,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -39,6 +39,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -41,6 +41,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -39,6 +39,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -41,6 +41,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -40,6 +40,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -40,6 +40,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -40,6 +40,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -41,6 +41,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -40,6 +40,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -40,6 +40,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -41,6 +41,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -40,6 +40,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -30,6 +30,7 @@ def export(result, space_name, reporting_start_datetime_local, reporting_end_dat
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -39,6 +39,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -39,6 +39,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -39,6 +39,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -39,6 +39,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -41,6 +41,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -39,6 +39,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -30,6 +30,7 @@ def export(result, space_name, reporting_start_datetime_local, reporting_end_dat
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -39,6 +39,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -40,6 +40,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -40,6 +40,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -40,6 +40,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -40,6 +40,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -41,6 +41,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -40,6 +40,7 @@ def export(report,
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -36,6 +36,7 @@ def export(report, name, reporting_start_datetime_local, reporting_end_datetime_
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()

View File

@ -33,6 +33,7 @@ def export(result, name, reporting_start_datetime_local, reporting_end_datetime_
#################################################################################################################### ####################################################################################################################
# Step 3: Encode the excel file to Base64 # Step 3: Encode the excel file to Base64
#################################################################################################################### ####################################################################################################################
binary_file_data = b''
try: try:
with open(filename, 'rb') as binary_file: with open(filename, 'rb') as binary_file:
binary_file_data = binary_file.read() binary_file_data = binary_file.read()