Reindex users that have not been deleted
This commit is contained in:
parent
add1c8b9b3
commit
207dacf816
@ -137,7 +137,7 @@ def index_users_rebuild():
|
|||||||
index_users_update_settings()
|
index_users_update_settings()
|
||||||
|
|
||||||
db = current_app.db()
|
db = current_app.db()
|
||||||
users = db['users'].find({'_deleted': {'$ne': False}})
|
users = db['users'].find({'_deleted': {'$ne': True}})
|
||||||
|
|
||||||
log.info('Reindexing all users')
|
log.info('Reindexing all users')
|
||||||
for user in users:
|
for user in users:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user