Commit 5c8449c9 authored by Mario Chirinos's avatar Mario Chirinos

websearch

parent 72dc1dae
......@@ -278,7 +278,7 @@ def newsDetails(request, newsId):
translator = str.maketrans('', '', string.punctuation)
searchtext = request.GET['text'].translate(translator)
print(searchtext)
print("search text:", searchtext)
for i in searchtext.split():
print("search for: ", i)
txtlen = len(i)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment