[Manage] adds vacuum
This commit is contained in:
parent
662883d3f1
commit
7e8ec39765
|
|
@ -229,6 +229,8 @@ def manage(args):
|
||||||
delete_jobs(c, username=args.username)
|
delete_jobs(c, username=args.username)
|
||||||
elif args.action == "list":
|
elif args.action == "list":
|
||||||
show_users(c, args.username, args.details)
|
show_users(c, args.username, args.details)
|
||||||
|
elif args.action == "vacuum":
|
||||||
|
c.execute("vacuum")
|
||||||
|
|
||||||
# Commit the changes to the database
|
# Commit the changes to the database
|
||||||
conn.commit()
|
conn.commit()
|
||||||
|
|
@ -301,6 +303,8 @@ def main():
|
||||||
"--details", action="store_true", help="Showing more details"
|
"--details", action="store_true", help="Showing more details"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
vacuum_parser = subparsers.add_parser("vacuum")
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
manage(args)
|
manage(args)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue