expose pacient hsh def pacient request hsh Show pacient by hash Pacien

1
2
3
4
5
6
7
8
9
@expose('/pacient/<hsh>')
def pacient(request, hsh):
"""
Show pacient by hash
"""
p = m.Pacient.query.filter(m.Pacient.hash.like(hsh+'%')).first()
if not p:
raise NotFound()
return render_template('pacient.html', pacient=p)