Skip to content

Commit

Permalink
adds notebook to populated linked_to_cases field
Browse files Browse the repository at this point in the history
  • Loading branch information
csae8092 committed Jul 8, 2024
1 parent 891aabd commit e50eb08
Showing 1 changed file with 68 additions and 0 deletions.
68 changes: 68 additions & 0 deletions xissue_85__populate_linked_to_cases.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "5f8bcf70",
"metadata": {},
"outputs": [],
"source": [
"items = KeyWord.objects.filter(rvn_courtdecission_keyword_keyword=None)"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "ca0c2a1b",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"55"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"items.count()"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "d860cbdb",
"metadata": {},
"outputs": [],
"source": [
"for x in items:\n",
" x.linked_to_cases = False\n",
" x.save()"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Django Shell-Plus",
"language": "python",
"name": "django_extensions"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.12"
}
},
"nbformat": 4,
"nbformat_minor": 5
}

0 comments on commit e50eb08

Please sign in to comment.