|
@@ -52,7 +52,7 @@ def catch_all(path):
|
|
|
scraped = scrape(f"https://urbandictionary.com/{re.sub(r'.*://.*/', '/', request.url)}")
|
|
|
if type(scraped) == str and scraped.startswith("REDIRECT"):
|
|
|
return redirect(scraped.replace("REDIRECT ", ""), 302)
|
|
|
- return render_template('index.html', data=scraped)
|
|
|
+ return render_template('index.html', data=scraped, term=request.args.get("term"))
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
from waitress import serve
|