Fix weird paths
parent
6a2454216e
commit
774b617143
2
app.py
2
app.py
|
@ -44,7 +44,7 @@ def list_terms():
|
|||
return render_template('terms.html', terms=terms)
|
||||
|
||||
|
||||
@app.route('/term/<term>')
|
||||
@app.route('/term/<path:term>')
|
||||
def show_term(term):
|
||||
cur = g.db.cursor()
|
||||
cur.execute('select _entry._text, _entry._added_at, _entry._added_by from _term left join _entry on _entry._term_oid = _term._oid where lower(_term._name) = lower(%s) order by _entry._added_at', [term,])
|
||||
|
|
Loading…
Reference in New Issue