mbradds / pipeline-profiles

Data visualization platform for Canada's major pipeline systems
https://lively-desert-05b6cc51e.1.azurestaticapps.net/
MIT License
6 stars 5 forks source link

Json data output code duplicated #128

Open mbradds opened 2 years ago

mbradds commented 2 years ago
if not test:
    with open('../data_output/incidents/'+folder_name+'.json', 'w') as fp:
        json.dump(this_company_data, fp)

This code only needs to appear once at the end of the if statement instead of in both the if and else.