Mercurial > code > home > repos > homeauto
diff service/rdf_to_mqtt/rdf_over_http.py @ 1732:3f4b447d65f5
port to starlette/asyncio
author | drewp@bigasterisk.com |
---|---|
date | Mon, 10 Jul 2023 17:37:58 -0700 |
parents | fdddbdaf07b5 |
children |
line wrap: on
line diff
--- a/service/rdf_to_mqtt/rdf_over_http.py Fri Jun 30 22:11:06 2023 -0700 +++ b/service/rdf_to_mqtt/rdf_over_http.py Mon Jul 10 17:37:58 2023 -0700 @@ -19,9 +19,9 @@ def rdfStatementsFromRequest(arg, body, headers): if arg.get('s') and arg.get('p'): - subj = expandQueryParamUri(arg['s'][-1]) - pred = expandQueryParamUri(arg['p'][-1]) - turtleLiteral = body + subj = expandQueryParamUri(arg['s']) + pred = expandQueryParamUri(arg['p']) + turtleLiteral = body.decode('utf8') try: obj = Literal(float(turtleLiteral)) except ValueError: