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

[Notebook] function to scan and delete documents according a match.

parent 73a5cd52
......@@ -60,6 +60,12 @@ def scan_gargantext(corpus_id, request):
.count())
def scan_gargantext_and_delte(corpus_id, request):
return (session.query(DocumentNode)
.filter_by(parent_id=corpus_id)
.filter(Node.title_abstract.match(request))
.delete())
def myProject_fromUrl(url):
"""
myProject :: String -> Project
......
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