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

このコミットが含まれているのは:
Ben Busby 2020-04-08 18:11:08 +00:00
コミット a00ccb1da8
1個のファイルの変更2行の追加2行の削除

ファイルの表示

@ -116,7 +116,7 @@ def search():
# Update logo
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['style'] = 'display: flex;justify-content: center;align-items: center;color: #685e79;font-size: 18px;'
@ -149,7 +149,7 @@ def search():
except Exception:
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'])