Fix weird paths

master
q3k 2014-04-25 21:33:38 +02:00
parent 6a2454216e
commit 774b617143
1 changed files with 1 additions and 1 deletions

2
app.py
View File

@ -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,])