Commit 28158915 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[Notebook] Simple function to delete matching documents.

parent eefba14f
......@@ -60,11 +60,12 @@ def scan_gargantext(corpus_id, request):
.count())
def scan_gargantext_and_delte(corpus_id, request):
def scan_gargantext_and_delete(corpus_id, request):
return (session.query(DocumentNode)
.filter_by(parent_id=corpus_id)
.filter(Node.title_abstract.match(request))
.delete())
.delete(synchronize_session='fetch')
)
def myProject_fromUrl(url):
"""
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment