Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
28158915
Commit
28158915
authored
Sep 14, 2017
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Notebook] Simple function to delete matching documents.
parent
eefba14f
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
562 additions
and
257 deletions
+562
-257
gargantext_notebook.py
install/notebook/gargantext_notebook.py
+3
-2
AdvancedTutorial-checkpoint.ipynb
...ooks/.ipynb_checkpoints/AdvancedTutorial-checkpoint.ipynb
+282
-147
AdvancedTutorial.ipynb
notebooks/AdvancedTutorial.ipynb
+277
-108
No files found.
install/notebook/gargantext_notebook.py
View file @
28158915
...
@@ -60,11 +60,12 @@ def scan_gargantext(corpus_id, request):
...
@@ -60,11 +60,12 @@ def scan_gargantext(corpus_id, request):
.
count
())
.
count
())
def
scan_gargantext_and_delte
(
corpus_id
,
request
):
def
scan_gargantext_and_del
e
te
(
corpus_id
,
request
):
return
(
session
.
query
(
DocumentNode
)
return
(
session
.
query
(
DocumentNode
)
.
filter_by
(
parent_id
=
corpus_id
)
.
filter_by
(
parent_id
=
corpus_id
)
.
filter
(
Node
.
title_abstract
.
match
(
request
))
.
filter
(
Node
.
title_abstract
.
match
(
request
))
.
delete
())
.
delete
(
synchronize_session
=
'fetch'
)
)
def
myProject_fromUrl
(
url
):
def
myProject_fromUrl
(
url
):
"""
"""
...
...
notebooks/.ipynb_checkpoints/AdvancedTutorial-checkpoint.ipynb
View file @
28158915
This diff is collapsed.
Click to expand it.
notebooks/AdvancedTutorial.ipynb
View file @
28158915
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment