This commit is contained in:
Rebecca Law
2017-05-23 15:36:33 +01:00
parent 6536177ac2
commit 54f7e732d9
2 changed files with 1 additions and 2 deletions

View File

@@ -82,7 +82,7 @@ class CustomDbScript(Command):
# Now update notification_history
subq_history = "select id from notification_history where international is null limit 250000"
update_history = "update notification_history set international = False where id in ({})".format(subq)
update_history = "update notification_history set international = False where id in ({})".format(subq_history)
result_history = db.session.execute(subq_history).fetchall()
while len(result_history) > 0:
db.session.execute(update_history)