chg: [updater] More intuitive db numbering

diagnosticTool
mokaddem 2019-06-18 11:46:48 +02:00
parent 68f158ebed
commit b14f291c94
1 changed files with 2 additions and 2 deletions

View File

@ -64,8 +64,8 @@ def exec_updates(db_version):
result = apply_update_1()
if result:
serv_redis_db.set(cfg.get('RedisDB', 'dbVersion'), db_version+1)
update_logger.warning(f'dbVersion sets to {db_version+1}')
serv_redis_db.set(cfg.get('RedisDB', 'dbVersion'), db_version)
update_logger.warning(f'dbVersion sets to {db_version}')
else:
update_logger.error(f'Something went wrong. {result}')