always updating VAERS files
This commit is contained in:
@@ -63,7 +63,6 @@
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"updateVAERSFiles(\n",
|
||||
" needsUpdate = True,\n",
|
||||
" years = years_from_2020_to_present,\n",
|
||||
" workingDirectory = os.getcwd())"
|
||||
]
|
||||
|
||||
@@ -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)
|
||||
Reference in New Issue
Block a user