server/search: refactor, extract parsing

This commit is contained in:
rr-
2016-06-03 12:13:43 +02:00
parent 3d0dfa13f3
commit 59ad5fe402
22 changed files with 308 additions and 243 deletions

View File

@ -5,7 +5,8 @@ from szurubooru.func import auth, snapshots
class SnapshotListApi(BaseApi):
def __init__(self):
super().__init__()
self._search_executor = search.SearchExecutor(search.SnapshotSearchConfig())
self._search_executor = search.Executor(
search.configs.SnapshotSearchConfig())
def get(self, ctx):
auth.verify_privilege(ctx.user, 'snapshots:list')