refactoring

This commit is contained in:
frankknoll
2022-11-22 21:11:17 +01:00
parent 22c41e64a7
commit 34c5bd8782
3 changed files with 27 additions and 16 deletions

View File

@@ -7,8 +7,7 @@ from HtmlUtils import getCountries
def createAndSaveBatchCodeTables(internationalVaersCovid19, minADRsForLethality):
batchCodeTableFactory = BatchCodeTableFactory(internationalVaersCovid19)
_createAndSaveBatchCodeTablesForCountries(
createBatchCodeTableForCountry=lambda country: batchCodeTableFactory.createBatchCodeTableByCountry(
country),
createBatchCodeTableForCountry=lambda country: batchCodeTableFactory.createBatchCodeTableByCountry(country),
countries=getCountries(internationalVaersCovid19),
minADRsForLethality=minADRsForLethality)
_createAndSaveBatchCodeTableForCountry(