apy.py: Quote ident when it's a DT compatible
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
This commit is contained in:
parent
bd93e4da67
commit
ef88295bd8
1 changed files with 4 additions and 0 deletions
|
|
@ -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(
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue