From 6ce93e0cf4a92f87b1124d9df5357e12e14ae1fe Mon Sep 17 00:00:00 2001 From: Imdad Ahad Date: Wed, 5 Jul 2017 13:46:09 +0100 Subject: [PATCH] Add len(results) --- app/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/commands.py b/app/commands.py index ccad25334..6e4bc53d1 100644 --- a/app/commands.py +++ b/app/commands.py @@ -132,7 +132,7 @@ class CustomDbScript(Command): while len(result) > 0: db.session.execute(update) - print('Committed {} updates at {}'.format(MAX, datetime.utcnow())) + print('Committed {} updates at {}'.format(len(result), datetime.utcnow())) db.session.commit() result = db.session.execute(subq).fetchall() @@ -143,6 +143,6 @@ class CustomDbScript(Command): while len(result) > 0: db.session.execute(update) - print('Committed {} updates at {}'.format(MAX, datetime.utcnow())) + print('Committed {} updates at {}'.format(len(result), datetime.utcnow())) db.session.commit() result = db.session.execute(subq_hist).fetchall()