Skip to content

Commit

Permalink
minor [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
csae8092 committed Feb 2, 2024
1 parent 9c679e3 commit 6259da8
Showing 1 changed file with 7 additions and 25 deletions.
32 changes: 7 additions & 25 deletions issue__17_dataimports_part3_works.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": null,
"id": "d7335a42",
"metadata": {},
"outputs": [],
Expand All @@ -24,7 +24,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"id": "dd68245d",
"metadata": {},
"outputs": [],
Expand All @@ -34,7 +34,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"id": "570aec42",
"metadata": {},
"outputs": [],
Expand All @@ -44,7 +44,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"id": "070e76d4",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -115,28 +115,12 @@
" "
]
},
{
"cell_type": "markdown",
"id": "b20fc88f",
"metadata": {},
"source": [
"ToDo: run this against production db"
]
},
{
"cell_type": "code",
"execution_count": 37,
"execution_count": null,
"id": "cb921b17",
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2148/2148 [00:27<00:00, 79.08it/s]\n"
]
}
],
"outputs": [],
"source": [
"for x in tqdm(doc.any_xpath(\".//tei:bibl[@xml:id][./tei:listBibl]\")):\n",
" ref = []\n",
Expand All @@ -151,9 +135,7 @@
" continue\n",
" quote = f\"{volume}, {page}.\"\n",
" ref.append(quote)\n",
" all_quotes = (\" *** \".join(ref))\n",
" if len(quote) > 2:\n",
" more.append(all_quotes) \n",
" all_quotes = (\" *** \".join(ref)) \n",
" \n",
" hbtv_uri = get_xmlid(x)\n",
" work_uri = f\"{bahr_url}{hbtv_uri}\"\n",
Expand Down

0 comments on commit 6259da8

Please sign in to comment.