diff --git a/myems-api/excelexporters/combinedequipmentbatch.py b/myems-api/excelexporters/combinedequipmentbatch.py index fcc253da..0e4efcd6 100644 --- a/myems-api/excelexporters/combinedequipmentbatch.py +++ b/myems-api/excelexporters/combinedequipmentbatch.py @@ -30,6 +30,7 @@ def export(result, space_name, reporting_start_datetime_local, reporting_end_dat #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/combinedequipmentcost.py b/myems-api/excelexporters/combinedequipmentcost.py index 73b93e96..de978cfc 100644 --- a/myems-api/excelexporters/combinedequipmentcost.py +++ b/myems-api/excelexporters/combinedequipmentcost.py @@ -41,6 +41,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/combinedequipmentefficiency.py b/myems-api/excelexporters/combinedequipmentefficiency.py index 5754f5a9..b73c3d0c 100644 --- a/myems-api/excelexporters/combinedequipmentefficiency.py +++ b/myems-api/excelexporters/combinedequipmentefficiency.py @@ -40,6 +40,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/combinedequipmentenergycategory.py b/myems-api/excelexporters/combinedequipmentenergycategory.py index fc94cb1c..6220fa4b 100644 --- a/myems-api/excelexporters/combinedequipmentenergycategory.py +++ b/myems-api/excelexporters/combinedequipmentenergycategory.py @@ -39,6 +39,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/combinedequipmentenergyitem.py b/myems-api/excelexporters/combinedequipmentenergyitem.py index c1962e7f..70f8e5fc 100644 --- a/myems-api/excelexporters/combinedequipmentenergyitem.py +++ b/myems-api/excelexporters/combinedequipmentenergyitem.py @@ -40,6 +40,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/combinedequipmentincome.py b/myems-api/excelexporters/combinedequipmentincome.py index cde96e0c..c6f405e2 100644 --- a/myems-api/excelexporters/combinedequipmentincome.py +++ b/myems-api/excelexporters/combinedequipmentincome.py @@ -41,6 +41,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/combinedequipmentload.py b/myems-api/excelexporters/combinedequipmentload.py index 5fe4a2ce..cc697c12 100644 --- a/myems-api/excelexporters/combinedequipmentload.py +++ b/myems-api/excelexporters/combinedequipmentload.py @@ -39,6 +39,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/combinedequipmentoutput.py b/myems-api/excelexporters/combinedequipmentoutput.py index 9cd67dc2..52ae6148 100644 --- a/myems-api/excelexporters/combinedequipmentoutput.py +++ b/myems-api/excelexporters/combinedequipmentoutput.py @@ -40,6 +40,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/combinedequipmentsaving.py b/myems-api/excelexporters/combinedequipmentsaving.py index 1ab26d64..d4dae235 100644 --- a/myems-api/excelexporters/combinedequipmentsaving.py +++ b/myems-api/excelexporters/combinedequipmentsaving.py @@ -41,6 +41,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/combinedequipmentstatistics.py b/myems-api/excelexporters/combinedequipmentstatistics.py index 2b212ed9..dc537b2e 100644 --- a/myems-api/excelexporters/combinedequipmentstatistics.py +++ b/myems-api/excelexporters/combinedequipmentstatistics.py @@ -40,6 +40,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/equipmentbatch.py b/myems-api/excelexporters/equipmentbatch.py index 21d88f68..08ae927c 100644 --- a/myems-api/excelexporters/equipmentbatch.py +++ b/myems-api/excelexporters/equipmentbatch.py @@ -30,6 +30,7 @@ def export(result, space_name, reporting_start_datetime_local, reporting_end_dat #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/equipmentcost.py b/myems-api/excelexporters/equipmentcost.py index c08ec647..84832e7b 100644 --- a/myems-api/excelexporters/equipmentcost.py +++ b/myems-api/excelexporters/equipmentcost.py @@ -40,6 +40,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/equipmentefficiency.py b/myems-api/excelexporters/equipmentefficiency.py index 9f669828..d683660e 100644 --- a/myems-api/excelexporters/equipmentefficiency.py +++ b/myems-api/excelexporters/equipmentefficiency.py @@ -40,6 +40,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/equipmentenergycategory.py b/myems-api/excelexporters/equipmentenergycategory.py index 3c172e44..5ff5ccd7 100644 --- a/myems-api/excelexporters/equipmentenergycategory.py +++ b/myems-api/excelexporters/equipmentenergycategory.py @@ -40,6 +40,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/equipmentenergyitem.py b/myems-api/excelexporters/equipmentenergyitem.py index 9502b505..f1cc14b3 100644 --- a/myems-api/excelexporters/equipmentenergyitem.py +++ b/myems-api/excelexporters/equipmentenergyitem.py @@ -40,6 +40,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/equipmentincome.py b/myems-api/excelexporters/equipmentincome.py index eb8dc492..11a7171a 100644 --- a/myems-api/excelexporters/equipmentincome.py +++ b/myems-api/excelexporters/equipmentincome.py @@ -40,6 +40,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/equipmentload.py b/myems-api/excelexporters/equipmentload.py index 1695c698..1869e62f 100644 --- a/myems-api/excelexporters/equipmentload.py +++ b/myems-api/excelexporters/equipmentload.py @@ -39,6 +39,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/equipmentoutput.py b/myems-api/excelexporters/equipmentoutput.py index b7b3b55b..eb67fb95 100644 --- a/myems-api/excelexporters/equipmentoutput.py +++ b/myems-api/excelexporters/equipmentoutput.py @@ -40,6 +40,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/equipmentsaving.py b/myems-api/excelexporters/equipmentsaving.py index fa178a42..0183b0c9 100644 --- a/myems-api/excelexporters/equipmentsaving.py +++ b/myems-api/excelexporters/equipmentsaving.py @@ -41,6 +41,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/equipmentstatistics.py b/myems-api/excelexporters/equipmentstatistics.py index b4157a53..310fe736 100644 --- a/myems-api/excelexporters/equipmentstatistics.py +++ b/myems-api/excelexporters/equipmentstatistics.py @@ -40,6 +40,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/equipmenttracking.py b/myems-api/excelexporters/equipmenttracking.py index b4b8a79b..83d61e6c 100644 --- a/myems-api/excelexporters/equipmenttracking.py +++ b/myems-api/excelexporters/equipmenttracking.py @@ -28,6 +28,7 @@ def export(result, space_name): #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/meterbatch.py b/myems-api/excelexporters/meterbatch.py index b7d4c3b6..5859c856 100644 --- a/myems-api/excelexporters/meterbatch.py +++ b/myems-api/excelexporters/meterbatch.py @@ -30,6 +30,7 @@ def export(result, space_name, reporting_start_datetime_local, reporting_end_dat #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/metercost.py b/myems-api/excelexporters/metercost.py index 8d2ba216..e3ae9244 100644 --- a/myems-api/excelexporters/metercost.py +++ b/myems-api/excelexporters/metercost.py @@ -37,6 +37,7 @@ def export(report, name, reporting_start_datetime_local, reporting_end_datetime_ #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/meterenergy.py b/myems-api/excelexporters/meterenergy.py index eca930c9..b13a1856 100644 --- a/myems-api/excelexporters/meterenergy.py +++ b/myems-api/excelexporters/meterenergy.py @@ -34,6 +34,7 @@ def export(result, name, reporting_start_datetime_local, reporting_end_datetime_ #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/metersubmetersbalance.py b/myems-api/excelexporters/metersubmetersbalance.py index 2a8e0646..8225a955 100644 --- a/myems-api/excelexporters/metersubmetersbalance.py +++ b/myems-api/excelexporters/metersubmetersbalance.py @@ -34,6 +34,7 @@ def export(result, name, reporting_start_datetime_local, reporting_end_datetime_ #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/metertracking.py b/myems-api/excelexporters/metertracking.py index 346404ca..6234e118 100644 --- a/myems-api/excelexporters/metertracking.py +++ b/myems-api/excelexporters/metertracking.py @@ -30,6 +30,7 @@ def export(result, space_name, reporting_start_datetime_local, reporting_end_dat #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/metertrend.py b/myems-api/excelexporters/metertrend.py index 6429bc84..18a410b7 100644 --- a/myems-api/excelexporters/metertrend.py +++ b/myems-api/excelexporters/metertrend.py @@ -40,6 +40,7 @@ def export(result, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/offlinemetercost.py b/myems-api/excelexporters/offlinemetercost.py index e390cf6c..bbfec6d0 100644 --- a/myems-api/excelexporters/offlinemetercost.py +++ b/myems-api/excelexporters/offlinemetercost.py @@ -36,6 +36,7 @@ def export(report, name, reporting_start_datetime_local, reporting_end_datetime_ #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/offlinemeterenergy.py b/myems-api/excelexporters/offlinemeterenergy.py index 6b76a26a..cbd2d402 100644 --- a/myems-api/excelexporters/offlinemeterenergy.py +++ b/myems-api/excelexporters/offlinemeterenergy.py @@ -33,6 +33,7 @@ def export(result, name, reporting_start_datetime_local, reporting_end_datetime_ #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/shopfloorbatch.py b/myems-api/excelexporters/shopfloorbatch.py index c8c1ec13..cf89ca5b 100644 --- a/myems-api/excelexporters/shopfloorbatch.py +++ b/myems-api/excelexporters/shopfloorbatch.py @@ -30,6 +30,7 @@ def export(result, space_name, reporting_start_datetime_local, reporting_end_dat #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/shopfloorcost.py b/myems-api/excelexporters/shopfloorcost.py index 864bd3fc..47b30846 100644 --- a/myems-api/excelexporters/shopfloorcost.py +++ b/myems-api/excelexporters/shopfloorcost.py @@ -40,6 +40,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/shopfloorenergycategory.py b/myems-api/excelexporters/shopfloorenergycategory.py index 71083f4d..49d40630 100644 --- a/myems-api/excelexporters/shopfloorenergycategory.py +++ b/myems-api/excelexporters/shopfloorenergycategory.py @@ -39,6 +39,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/shopfloorenergyitem.py b/myems-api/excelexporters/shopfloorenergyitem.py index 0474b821..5cd1d14d 100644 --- a/myems-api/excelexporters/shopfloorenergyitem.py +++ b/myems-api/excelexporters/shopfloorenergyitem.py @@ -39,6 +39,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/shopfloorload.py b/myems-api/excelexporters/shopfloorload.py index 5cedfbcf..1d886b22 100644 --- a/myems-api/excelexporters/shopfloorload.py +++ b/myems-api/excelexporters/shopfloorload.py @@ -39,6 +39,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/shopfloorsaving.py b/myems-api/excelexporters/shopfloorsaving.py index 61025b36..6fb2a58c 100644 --- a/myems-api/excelexporters/shopfloorsaving.py +++ b/myems-api/excelexporters/shopfloorsaving.py @@ -41,6 +41,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/shopfloorstatistics.py b/myems-api/excelexporters/shopfloorstatistics.py index 0f201519..8d011ffe 100644 --- a/myems-api/excelexporters/shopfloorstatistics.py +++ b/myems-api/excelexporters/shopfloorstatistics.py @@ -39,6 +39,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/spacecost.py b/myems-api/excelexporters/spacecost.py index 4f9cc231..99e17752 100644 --- a/myems-api/excelexporters/spacecost.py +++ b/myems-api/excelexporters/spacecost.py @@ -41,6 +41,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/spaceefficiency.py b/myems-api/excelexporters/spaceefficiency.py index f7eb898f..6114f6e1 100644 --- a/myems-api/excelexporters/spaceefficiency.py +++ b/myems-api/excelexporters/spaceefficiency.py @@ -40,6 +40,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/spaceenergycategory.py b/myems-api/excelexporters/spaceenergycategory.py index 1a1b1750..3d1740ea 100644 --- a/myems-api/excelexporters/spaceenergycategory.py +++ b/myems-api/excelexporters/spaceenergycategory.py @@ -40,6 +40,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/spaceenergyitem.py b/myems-api/excelexporters/spaceenergyitem.py index 95312e78..b3f34f69 100644 --- a/myems-api/excelexporters/spaceenergyitem.py +++ b/myems-api/excelexporters/spaceenergyitem.py @@ -40,6 +40,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/spaceincome.py b/myems-api/excelexporters/spaceincome.py index 13416705..5b40abab 100644 --- a/myems-api/excelexporters/spaceincome.py +++ b/myems-api/excelexporters/spaceincome.py @@ -41,6 +41,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/spaceload.py b/myems-api/excelexporters/spaceload.py index 9e2a167c..b87c1836 100644 --- a/myems-api/excelexporters/spaceload.py +++ b/myems-api/excelexporters/spaceload.py @@ -40,6 +40,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/spaceoutput.py b/myems-api/excelexporters/spaceoutput.py index aaf0ba47..dc8a7923 100644 --- a/myems-api/excelexporters/spaceoutput.py +++ b/myems-api/excelexporters/spaceoutput.py @@ -40,6 +40,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/spacesaving.py b/myems-api/excelexporters/spacesaving.py index 812ba358..ac8824ce 100644 --- a/myems-api/excelexporters/spacesaving.py +++ b/myems-api/excelexporters/spacesaving.py @@ -41,6 +41,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/spacestatistics.py b/myems-api/excelexporters/spacestatistics.py index c9f56d0e..3564d80e 100644 --- a/myems-api/excelexporters/spacestatistics.py +++ b/myems-api/excelexporters/spacestatistics.py @@ -40,6 +40,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/storebatch.py b/myems-api/excelexporters/storebatch.py index cce3aa6b..247661db 100644 --- a/myems-api/excelexporters/storebatch.py +++ b/myems-api/excelexporters/storebatch.py @@ -30,6 +30,7 @@ def export(result, space_name, reporting_start_datetime_local, reporting_end_dat #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/storecost.py b/myems-api/excelexporters/storecost.py index 947081ac..35fc9cd9 100644 --- a/myems-api/excelexporters/storecost.py +++ b/myems-api/excelexporters/storecost.py @@ -39,6 +39,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/storeenergycategory.py b/myems-api/excelexporters/storeenergycategory.py index 2a7021de..04b324e4 100644 --- a/myems-api/excelexporters/storeenergycategory.py +++ b/myems-api/excelexporters/storeenergycategory.py @@ -39,6 +39,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/storeenergyitem.py b/myems-api/excelexporters/storeenergyitem.py index aab8d393..dddd4184 100644 --- a/myems-api/excelexporters/storeenergyitem.py +++ b/myems-api/excelexporters/storeenergyitem.py @@ -39,6 +39,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/storeload.py b/myems-api/excelexporters/storeload.py index 2afd9e8f..c5e4c5c8 100644 --- a/myems-api/excelexporters/storeload.py +++ b/myems-api/excelexporters/storeload.py @@ -39,6 +39,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/storesaving.py b/myems-api/excelexporters/storesaving.py index b88eb0b9..2a3e164e 100644 --- a/myems-api/excelexporters/storesaving.py +++ b/myems-api/excelexporters/storesaving.py @@ -41,6 +41,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/storestatistics.py b/myems-api/excelexporters/storestatistics.py index 625a00bf..1fd88f87 100644 --- a/myems-api/excelexporters/storestatistics.py +++ b/myems-api/excelexporters/storestatistics.py @@ -39,6 +39,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/tenantbatch.py b/myems-api/excelexporters/tenantbatch.py index 2b7aa8d1..58af6565 100644 --- a/myems-api/excelexporters/tenantbatch.py +++ b/myems-api/excelexporters/tenantbatch.py @@ -30,6 +30,7 @@ def export(result, space_name, reporting_start_datetime_local, reporting_end_dat #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/tenantbill.py b/myems-api/excelexporters/tenantbill.py index 9906730f..4b7c3019 100644 --- a/myems-api/excelexporters/tenantbill.py +++ b/myems-api/excelexporters/tenantbill.py @@ -39,6 +39,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/tenantcost.py b/myems-api/excelexporters/tenantcost.py index 748d9a2a..50513a08 100644 --- a/myems-api/excelexporters/tenantcost.py +++ b/myems-api/excelexporters/tenantcost.py @@ -40,6 +40,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/tenantenergycategory.py b/myems-api/excelexporters/tenantenergycategory.py index 145d1a97..ef74e4e9 100644 --- a/myems-api/excelexporters/tenantenergycategory.py +++ b/myems-api/excelexporters/tenantenergycategory.py @@ -40,6 +40,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/tenantenergyitem.py b/myems-api/excelexporters/tenantenergyitem.py index 2f1f9cc5..6828bc10 100644 --- a/myems-api/excelexporters/tenantenergyitem.py +++ b/myems-api/excelexporters/tenantenergyitem.py @@ -40,6 +40,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/tenantload.py b/myems-api/excelexporters/tenantload.py index 0e0a2bb6..2c86e3b1 100644 --- a/myems-api/excelexporters/tenantload.py +++ b/myems-api/excelexporters/tenantload.py @@ -40,6 +40,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/tenantsaving.py b/myems-api/excelexporters/tenantsaving.py index 8dec3b28..01cbbd13 100644 --- a/myems-api/excelexporters/tenantsaving.py +++ b/myems-api/excelexporters/tenantsaving.py @@ -41,6 +41,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/tenantstatistics.py b/myems-api/excelexporters/tenantstatistics.py index d110ab8e..22e5c3bb 100644 --- a/myems-api/excelexporters/tenantstatistics.py +++ b/myems-api/excelexporters/tenantstatistics.py @@ -40,6 +40,7 @@ def export(report, #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/virtualmetercost.py b/myems-api/excelexporters/virtualmetercost.py index 21194d60..833c32bd 100644 --- a/myems-api/excelexporters/virtualmetercost.py +++ b/myems-api/excelexporters/virtualmetercost.py @@ -36,6 +36,7 @@ def export(report, name, reporting_start_datetime_local, reporting_end_datetime_ #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read() diff --git a/myems-api/excelexporters/virtualmeterenergy.py b/myems-api/excelexporters/virtualmeterenergy.py index 15ec3269..08d4535a 100644 --- a/myems-api/excelexporters/virtualmeterenergy.py +++ b/myems-api/excelexporters/virtualmeterenergy.py @@ -33,6 +33,7 @@ def export(result, name, reporting_start_datetime_local, reporting_end_datetime_ #################################################################################################################### # Step 3: Encode the excel file to Base64 #################################################################################################################### + binary_file_data = b'' try: with open(filename, 'rb') as binary_file: binary_file_data = binary_file.read()