apy.py: Quote ident when it's a DT compatible

Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
This commit is contained in:
Maxime Chretien 2020-06-08 12:13:41 +02:00
parent bd93e4da67
commit ef88295bd8

View file

@ -21,6 +21,7 @@ import json
import os
import falcon
from urllib import parse
ELIXIR_DIR = os.path.dirname(os.path.realpath(__file__)) + '/..'
@ -55,6 +56,9 @@ class IdentGetter:
else:
family = 'C'
if family == 'B': #DT compatible strings are quoted in the database
ident = parse.quote(ident)
symbol_definitions, symbol_references, symbol_doccomments_UNUSED = query('ident', version, ident, family)
resp.body = json.dumps(
{