From b0f800b810bd449db74736716d0061ac0d868f85 Mon Sep 17 00:00:00 2001 From: rune Date: Mon, 8 Jul 2024 10:14:31 +0200 Subject: [PATCH] Minor changes --- app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: