server/posts: commit reverse search population
This commit is contained in:
parent
af6c35ed6b
commit
cce543e0b6
1 changed files with 2 additions and 3 deletions
|
@ -1,12 +1,10 @@
|
||||||
''' Exports create_app. '''
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
import logging
|
import logging
|
||||||
import threading
|
import threading
|
||||||
import coloredlogs
|
import coloredlogs
|
||||||
import sqlalchemy.orm.exc
|
import sqlalchemy.orm.exc
|
||||||
from szurubooru import config, errors, rest
|
from szurubooru import config, db, errors, rest
|
||||||
from szurubooru.func import posts, file_uploads
|
from szurubooru.func import posts, file_uploads
|
||||||
# pylint: disable=unused-import
|
# pylint: disable=unused-import
|
||||||
from szurubooru import api, middleware
|
from szurubooru import api, middleware
|
||||||
|
@ -113,6 +111,7 @@ def create_app():
|
||||||
|
|
||||||
try:
|
try:
|
||||||
posts.populate_reverse_search()
|
posts.populate_reverse_search()
|
||||||
|
db.session.commit()
|
||||||
except errors.ThirdPartyError:
|
except errors.ThirdPartyError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue