always updating VAERS files

This commit is contained in:
frankknoll
2023-01-15 14:10:43 +01:00
parent 00cd15383e
commit 95933aeaeb
2 changed files with 4 additions and 6 deletions

View File

@@ -63,7 +63,6 @@
"outputs": [], "outputs": [],
"source": [ "source": [
"updateVAERSFiles(\n", "updateVAERSFiles(\n",
" needsUpdate = True,\n",
" years = years_from_2020_to_present,\n", " years = years_from_2020_to_present,\n",
" workingDirectory = os.getcwd())" " workingDirectory = os.getcwd())"
] ]

View File

@@ -56,8 +56,7 @@ def downloadVAERSFileAndUnzip(file, workingDirectory):
zipFile = downloadedFile, zipFile = downloadedFile,
dstDir = workingDirectory + '/VAERS/') dstDir = workingDirectory + '/VAERS/')
def updateVAERSFiles(needsUpdate, years, workingDirectory): def updateVAERSFiles(years, workingDirectory):
if needsUpdate: for year in years:
for year in years: downloadVAERSFileAndUnzip(f'{year}VAERSData.zip', workingDirectory)
downloadVAERSFileAndUnzip(f'{year}VAERSData.zip', workingDirectory) downloadVAERSFileAndUnzip('NonDomesticVAERSData.zip', workingDirectory)
downloadVAERSFileAndUnzip('NonDomesticVAERSData.zip', workingDirectory)