diff options
Diffstat (limited to 'source/pyAggr3g470r.py')
-rwxr-xr-x | source/pyAggr3g470r.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py index d0753537..f065b871 100755 --- a/source/pyAggr3g470r.py +++ b/source/pyAggr3g470r.py @@ -58,6 +58,7 @@ import conf import utils import export import mongodb +import search import feedgetter import auth @@ -607,7 +608,6 @@ class pyAggr3g470r(object): logout.exposed = True - @auth.require() def drop_base(self): """ @@ -619,6 +619,16 @@ class pyAggr3g470r(object): drop_base.exposed = True @auth.require() + def index_base(self): + """ + Launches the indexing of the database. + """ + search.create_index() + return self.index() + + index_base.exposed = True + + @auth.require() def export(self, export_method): """ Export articles currently loaded from the MongoDB database with |