diff --git a/app.py b/app.py index c51b477..a5409a8 100644 --- a/app.py +++ b/app.py @@ -1,5 +1,6 @@ #!/usr/bin/python3 import sys +import cmd sys.path.append("/opt/homebrew/lib/python3.11/site-packages") import sqlite3 @@ -37,14 +38,11 @@ def parse(): final_list = the_list.sort() # sorts normally by alphabetical order the_list = sorted(the_list, key=len, reverse=False) if len(the_list) > 0: - print(*the_list, sep="\n") + out = cmd.Cmd() + out.columnize(the_list, displaywidth=80) else: print("No expired domains with the length citeria you wanted!") -def main(): - parse() - - if __name__ == "__main__": - main() + parse()