mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 09:26:08 -05:00
Add len(results)
This commit is contained in:
@@ -132,7 +132,7 @@ class CustomDbScript(Command):
|
|||||||
|
|
||||||
while len(result) > 0:
|
while len(result) > 0:
|
||||||
db.session.execute(update)
|
db.session.execute(update)
|
||||||
print('Committed {} updates at {}'.format(MAX, datetime.utcnow()))
|
print('Committed {} updates at {}'.format(len(result), datetime.utcnow()))
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
result = db.session.execute(subq).fetchall()
|
result = db.session.execute(subq).fetchall()
|
||||||
|
|
||||||
@@ -143,6 +143,6 @@ class CustomDbScript(Command):
|
|||||||
|
|
||||||
while len(result) > 0:
|
while len(result) > 0:
|
||||||
db.session.execute(update)
|
db.session.execute(update)
|
||||||
print('Committed {} updates at {}'.format(MAX, datetime.utcnow()))
|
print('Committed {} updates at {}'.format(len(result), datetime.utcnow()))
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
result = db.session.execute(subq_hist).fetchall()
|
result = db.session.execute(subq_hist).fetchall()
|
||||||
|
|||||||
Reference in New Issue
Block a user