refactoring

This commit is contained in:
frankknoll
2023-03-31 12:40:58 +02:00
parent 85c5a0ee60
commit 49db8cde8f
2 changed files with 30 additions and 11 deletions

View File

@@ -197,30 +197,48 @@
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"#res = pd.merge(\n", "from BatchCodeTableFactory import BatchCodeTableFactory\n",
"# batchCodeTable,\n", "\n",
"# countriesByClickedBatchcode,\n", "batchCodeTable = BatchCodeTableFactory(internationalVaersCovid19).createGlobalBatchCodeTable(countriesAsList = True)\n",
"# how = 'left',\n", "batchCodeTable"
"# left_index = True,\n",
"# right_index = True,\n",
"# validate = 'one_to_one')\n",
"#res"
] ]
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": null,
"id": "b36ea0d4", "id": "96d4a25c",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"# res[~res['batchCodeTableCountries guessed'].isna()].to_excel('tmp/tableWithCountriesGuessed.xlsx')" "batchCodeTable['Countries']"
] ]
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": null,
"id": "89c65459", "id": "cefbcdc3",
"metadata": {},
"outputs": [],
"source": [
"countriesByBatchcodeBeforeDeletion['Countries']"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "d9b2bc07",
"metadata": {},
"outputs": [],
"source": [
"from CountriesMerger import CountriesMerger\n",
"\n",
"CountriesMerger.mergeSrcIntoDst(dst = batchCodeTable['Countries'], src = countriesByBatchcodeBeforeDeletion['Countries'])"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "40321fd4",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [

View File

@@ -4,6 +4,7 @@ FK-FIXME:
FK-TODO: FK-TODO:
- add google captcha to batchCodeTable.html - add google captcha to batchCodeTable.html
- remove batch code tables for countries (UI, GA event, code, ...)
anacron job: anacron job:
sudo cp src/intensivstationen_howbadismybatch.sh /etc/cron.daily/intensivstationen_howbadismybatch sudo cp src/intensivstationen_howbadismybatch.sh /etc/cron.daily/intensivstationen_howbadismybatch