Merge "Fix ValueError if invalid max_rows passed to db purge"

This commit is contained in:
Jenkins 2017-09-06 13:28:39 +00:00 committed by Gerrit Code Review
commit cfad1bea30
1 changed files with 2 additions and 2 deletions

View File

@ -709,8 +709,8 @@ class DbCommands(object):
"""Print the current database version."""
print(migration.db_version())
@args('--max_rows', metavar='<number>', default=1000,
help='Maximum number of deleted rows to archive')
@args('--max_rows', type=int, metavar='<number>', default=1000,
help='Maximum number of deleted rows to archive')
@args('--verbose', action='store_true', dest='verbose', default=False,
help='Print how many rows were archived per table.')
@args('--until-complete', action='store_true', dest='until_complete',