Skip to content
Snippets Groups Projects
Commit 6db2892c authored by Colton Leekley-Winslow's avatar Colton Leekley-Winslow Committed by GitHub
Browse files

Merge pull request #595 from scitran/config-persisted

Always set config persisted to true
parents 9a4b5879 469bd29c
No related branches found
No related tags found
No related merge requests found
......@@ -234,8 +234,8 @@ def get_config():
__config['created'] = now
__config['modified'] = now
r = db.singletons.replace_one({'_id': 'config'}, __config, upsert=True)
__config_persisted = bool(r.modified_count)
db.singletons.replace_one({'_id': 'config'}, __config, upsert=True)
__config_persisted = True
__last_update = now
elif now - __last_update > datetime.timedelta(seconds=120):
log.debug('Refreshing configuration from database')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment