Minor changes
This commit is contained in:
parent
19c6ac5c46
commit
b0f800b810
6
app.py
6
app.py
@ -1,9 +1,9 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
import sys
|
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")
|
sys.path.append("/opt/homebrew/lib/python3.11/site-packages")
|
||||||
import sqlite3
|
import cmd
|
||||||
import requests
|
import requests
|
||||||
from bs4 import BeautifulSoup
|
from bs4 import BeautifulSoup
|
||||||
|
|
||||||
@ -17,7 +17,7 @@ def cleanlist(my_list):
|
|||||||
if max_len != None:
|
if max_len != None:
|
||||||
retList = []
|
retList = []
|
||||||
for x in my_list:
|
for x in my_list:
|
||||||
if len(x) == (max_len + 3):
|
if len(x) <= (max_len + 3):
|
||||||
retList.append(x)
|
retList.append(x)
|
||||||
return retList
|
return retList
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user