Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
bug: Fix generate_excel_summary.py if media/export/ directory does no…
Browse files Browse the repository at this point in the history
…t exist
  • Loading branch information
jpmckinney committed Mar 29, 2021
1 parent 1b3f10c commit e13c38c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions country/management/commands/generate_excel_summary.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import socket

import xlsxwriter
Expand All @@ -12,6 +13,7 @@ class Command(BaseCommand):

def handle(self, *args, **kwargs):
print("Exporting!!!!!!!!")
os.makedirs(os.path.join("media", "export"), exist_ok=True)
workbook = xlsxwriter.Workbook("media/export/overall_summary.xlsx")
worksheet = workbook.add_worksheet()
row = 0
Expand Down

0 comments on commit e13c38c

Please sign in to comment.