Commit 88782d76 authored by Federico Sismondi's avatar Federico Sismondi

Fix() small issue

parent 8ff373bd
......@@ -225,9 +225,9 @@ def _forward_lora_dev_data_to_ctx_broker(deveui, comment, longitude, latitude, l
if comment:
body.update({'description': get_ngsiv2_typed_description(comment)})
# parse device name hiden inside comment field
# parse device name hidden inside comment field
pattern = r'{device_name}=([^\s]+)'
result = re.search(pattern, unaccented_comment)
result = re.search(pattern, comment)
if result:
body.update({'name': get_ngsiv2_typed_description(result.groups()[0])})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment