This commit is contained in:
Ryan Holmes
2017-04-01 23:09:32 -05:00
committed by GitHub
parent e03b3227d4
commit 112ab91e34

View File

@@ -215,7 +215,7 @@ class DatabaseCleanup(object):
row = results.first()
if row and row['num']:
query = "UPDATE '{0}' SET '{1}Amount' = '0' WHERE {1}Amount IS NULL OR Amount = ''".format(profileType,
query = "UPDATE '{0}' SET '{1}Amount' = '0' WHERE {1}Amount IS NULL OR {1}Amount = ''".format(profileType,
damageType)
delete = DatabaseCleanup.ExecuteSQLQuery(saveddata_engine, query)
pyfalog.error("Database corruption found. Cleaning up {0} records.", delete.rowcount)