From 84efc5f77af99917e582619721fe4c490e56c734 Mon Sep 17 00:00:00 2001 From: frankknoll Date: Tue, 28 Mar 2023 15:03:07 +0200 Subject: [PATCH 1/4] setting "isHeadless = True" --- src/VAERSFileDownloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/VAERSFileDownloader.py b/src/VAERSFileDownloader.py index d49527ed617..24356f0d06a 100644 --- a/src/VAERSFileDownloader.py +++ b/src/VAERSFileDownloader.py @@ -26,7 +26,7 @@ def downloadVAERSFileAndUnzip(file, workingDirectory): dstDir = workingDirectory + '/VAERS/') def downloadVAERSFile(file, downloadDir): - driver = getWebDriver(downloadDir, isHeadless = False) + driver = getWebDriver(downloadDir, isHeadless = True) downloadedFile = downloadFile( absoluteFile = downloadDir + "/" + file, driver = driver, From f98ed0aa8aae6a8518d3e7a359f8e270f01bca78 Mon Sep 17 00:00:00 2001 From: frankknoll Date: Tue, 28 Mar 2023 23:14:22 +0200 Subject: [PATCH 2/4] tracking selected country in GA --- docs/GoogleAnalytics.js | 13 ++ docs/batchCodeTable.html | 267 ++++++++++++++++++++++++++++----------- docs/batchCodeTable.js | 1 + 3 files changed, 208 insertions(+), 73 deletions(-) diff --git a/docs/GoogleAnalytics.js b/docs/GoogleAnalytics.js index f1ae6368add..866e6d68ba7 100644 --- a/docs/GoogleAnalytics.js +++ b/docs/GoogleAnalytics.js @@ -17,4 +17,17 @@ class GoogleAnalytics { 'search_term': search_term }); } + + static countrySelected(country) { + gtag("event", + "select_item", + { + item_list_id: "countrySelect", + items: [ + { + item_id: country, + } + ] + }); + } } diff --git a/docs/batchCodeTable.html b/docs/batchCodeTable.html index c372bcfaec8..6c9bcf9312a 100644 --- a/docs/batchCodeTable.html +++ b/docs/batchCodeTable.html @@ -1,36 +1,43 @@ + - - -Batch Codes of Coronavirus 2019 Vaccines - - - + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + -Fork me on GitHub -

Batch Codes of Coronavirus 2019 Vaccines

-

- -

-

-

-Check out your batch code (Last updated: March 24, 2023) + Fork me on GitHub +

Batch Codes of Coronavirus 2019 Vaccines

+

+

- - - - - - - - - - - - - - - -
BatchAdverse Reaction ReportsDeathsDisabilitiesLife Threatening IllnessesCompanyCountriesSevere reportsLethality
-

Data Source: -Vaccine Adverse Event Reporting System +

+

+ Check out your batch code (Last updated: March 24, 2023) +

+ + + + + + + + + + + + + + + +
BatchAdverse Reaction ReportsDeathsDisabilitiesLife Threatening IllnessesCompanyCountriesSevere reportsLethality
+

Data Source: + Vaccine Adverse Event Reporting System (VAERS) -

- - + + \ No newline at end of file diff --git a/docs/batchCodeTable.js b/docs/batchCodeTable.js index 23b3882b395..aafbc5eaae6 100644 --- a/docs/batchCodeTable.js +++ b/docs/batchCodeTable.js @@ -117,6 +117,7 @@ class BatchCodeTableInitializer { this.#columnSearch.columnContentUpdated(); this.#selectInput(); }); + GoogleAnalytics.countrySelected(this.#getCountry()); } #_addEmptyControlColumn(json) { From 091876fe5c745901a5b0f0f74122733657738fb1 Mon Sep 17 00:00:00 2001 From: frankknoll Date: Tue, 28 Mar 2023 23:37:13 +0200 Subject: [PATCH 3/4] formating --- docs/GoogleAnalytics.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/GoogleAnalytics.js b/docs/GoogleAnalytics.js index 866e6d68ba7..909e50f25e9 100644 --- a/docs/GoogleAnalytics.js +++ b/docs/GoogleAnalytics.js @@ -19,7 +19,8 @@ class GoogleAnalytics { } static countrySelected(country) { - gtag("event", + gtag( + "event", "select_item", { item_list_id: "countrySelect", From d08ccdb2d71a5a91f816607c555311b8810cd2c1 Mon Sep 17 00:00:00 2001 From: frankknoll Date: Wed, 29 Mar 2023 08:50:38 +0200 Subject: [PATCH 4/4] formating --- docs/GoogleAnalytics.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/GoogleAnalytics.js b/docs/GoogleAnalytics.js index 909e50f25e9..a7ea83c1d53 100644 --- a/docs/GoogleAnalytics.js +++ b/docs/GoogleAnalytics.js @@ -24,11 +24,12 @@ class GoogleAnalytics { "select_item", { item_list_id: "countrySelect", - items: [ - { - item_id: country, - } - ] + items: + [ + { + item_id: country, + } + ] }); } }