Small fix for viewing images on mobile, updated document title formatting

main
Ben Busby 2020-04-08 18:11:08 +00:00
parent 2411f9de8d
commit a00ccb1da8
1 changed files with 2 additions and 2 deletions

View File

@ -116,7 +116,7 @@ def search():
# Update logo # Update logo
logo = soup.find('a', {'class': 'l'}) logo = soup.find('a', {'class': 'l'})
if logo is not None and 'Android' in user_agent or 'iPhone' in user_agent: if logo is not None and ('Android' in user_agent or 'iPhone' in user_agent):
logo.insert(0, 'Shoogle') logo.insert(0, 'Shoogle')
logo['style'] = 'display: flex;justify-content: center;align-items: center;color: #685e79;font-size: 18px;' logo['style'] = 'display: flex;justify-content: center;align-items: center;color: #685e79;font-size: 18px;'
@ -149,7 +149,7 @@ def search():
except Exception: except Exception:
pass pass
return render_template('display.html', query=q, response=soup) return render_template('display.html', query=urlparse.unquote(q), response=soup)
@app.route('/config', methods=['POST']) @app.route('/config', methods=['POST'])