mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
server/search: refactor, extract parsing
This commit is contained in:
@ -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')
|
||||
|
Reference in New Issue
Block a user