refactoring

This commit is contained in:
frankknoll
2022-11-22 17:24:43 +01:00
parent b463c5e01e
commit 36a5733a17
3 changed files with 24 additions and 60 deletions

View File

@@ -55,3 +55,8 @@ def downloadVAERSFileAndUnzip(file, workingDirectory):
unzipAndRemove(
zipFile = downloadedFile,
dstDir = workingDirectory + '/VAERS/')
def updateVAERSFiles(needsUpdate, workingDirectory):
if needsUpdate:
downloadVAERSFileAndUnzip('2022VAERSData.zip', workingDirectory)
downloadVAERSFileAndUnzip('NonDomesticVAERSData.zip', workingDirectory)