diff --git a/app.py b/app.py index df4620b..1d39f36 100755 --- a/app.py +++ b/app.py @@ -1,9 +1,9 @@ #!/usr/bin/python3 import sys -import cmd +# The next line is for my setup. This might not be correct for every setup! sys.path.append("/opt/homebrew/lib/python3.11/site-packages") -import sqlite3 +import cmd import requests from bs4 import BeautifulSoup @@ -17,7 +17,7 @@ def cleanlist(my_list): if max_len != None: retList = [] for x in my_list: - if len(x) == (max_len + 3): + if len(x) <= (max_len + 3): retList.append(x) return retList else: