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": [],
"source": [
"updateVAERSFiles(\n",
" needsUpdate = True,\n",
" years = years_from_2020_to_present,\n",
" workingDirectory = os.getcwd())"
]

View File

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