Cleanup some code smells identified by SonarQube.

This commit is contained in:
Dave Page
2020-06-10 16:42:59 +01:00
parent 1485ff338f
commit 85e89c869a
24 changed files with 788 additions and 897 deletions

View File

@@ -222,10 +222,6 @@ def upgrade():
sql = "INSERT INTO keys (name, value) VALUES ('SECURITY_PASSWORD_SALT', 'SuperSecret3')"
db.engine.execute(sql)
# Finally, update the schema version
# version.value = config.SETTINGS_SCHEMA_VERSION
db.engine.execute(
'UPDATE version set value="%s" WHERE name = "ConfigDB"' % config.SETTINGS_SCHEMA_VERSION
)