Commit 37431d02 authored by Ivan Tyagov's avatar Ivan Tyagov

Remove leading and trailing quote character from serialized partition information inside SQlite DB.

parent 18f659d8
...@@ -51,6 +51,11 @@ def get_connection_information(software_release): ...@@ -51,6 +51,11 @@ def get_connection_information(software_release):
except: except:
return "error" return "error"
# remove leading and trailing '"' character
# from serialized partition information inside SQlite DB
if value.startswith('"') and value.endswith('"'):
value = value[1:-1].replace('\\"', '"')
if not value.startswith("{"): if not value.startswith("{"):
value = "\"" + value + "\"" value = "\"" + value + "\""
json_text = json.loads(value) json_text = json.loads(value)
......
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