refactoring
This commit is contained in:
@@ -80,7 +80,10 @@
|
|||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"updateVAERSFiles(needsUpdate, getWorkingDirectory())"
|
"updateVAERSFiles(\n",
|
||||||
|
" needsUpdate,\n",
|
||||||
|
" years = [2022],\n",
|
||||||
|
" workingDirectory = getWorkingDirectory())"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -56,7 +56,8 @@ def downloadVAERSFileAndUnzip(file, workingDirectory):
|
|||||||
zipFile = downloadedFile,
|
zipFile = downloadedFile,
|
||||||
dstDir = workingDirectory + '/VAERS/')
|
dstDir = workingDirectory + '/VAERS/')
|
||||||
|
|
||||||
def updateVAERSFiles(needsUpdate, workingDirectory):
|
def updateVAERSFiles(needsUpdate, years, workingDirectory):
|
||||||
if needsUpdate:
|
if needsUpdate:
|
||||||
downloadVAERSFileAndUnzip('2022VAERSData.zip', workingDirectory)
|
for year in years:
|
||||||
|
downloadVAERSFileAndUnzip(f'{year}VAERSData.zip', workingDirectory)
|
||||||
downloadVAERSFileAndUnzip('NonDomesticVAERSData.zip', workingDirectory)
|
downloadVAERSFileAndUnzip('NonDomesticVAERSData.zip', workingDirectory)
|
||||||
Reference in New Issue
Block a user