refactoring
This commit is contained in:
@@ -197,30 +197,48 @@
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"#res = pd.merge(\n",
|
||||
"# batchCodeTable,\n",
|
||||
"# countriesByClickedBatchcode,\n",
|
||||
"# how = 'left',\n",
|
||||
"# left_index = True,\n",
|
||||
"# right_index = True,\n",
|
||||
"# validate = 'one_to_one')\n",
|
||||
"#res"
|
||||
"from BatchCodeTableFactory import BatchCodeTableFactory\n",
|
||||
"\n",
|
||||
"batchCodeTable = BatchCodeTableFactory(internationalVaersCovid19).createGlobalBatchCodeTable(countriesAsList = True)\n",
|
||||
"batchCodeTable"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "b36ea0d4",
|
||||
"id": "96d4a25c",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"# res[~res['batchCodeTableCountries guessed'].isna()].to_excel('tmp/tableWithCountriesGuessed.xlsx')"
|
||||
"batchCodeTable['Countries']"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"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": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
|
||||
@@ -4,6 +4,7 @@ FK-FIXME:
|
||||
|
||||
FK-TODO:
|
||||
- add google captcha to batchCodeTable.html
|
||||
- remove batch code tables for countries (UI, GA event, code, ...)
|
||||
|
||||
anacron job:
|
||||
sudo cp src/intensivstationen_howbadismybatch.sh /etc/cron.daily/intensivstationen_howbadismybatch
|
||||
|
||||
Reference in New Issue
Block a user