Merge pull request #129 from catalin-ursachi/fix-tildr
TILDR-1073 - Fix profile initializationsammachin-gprs
commit
d696b27ba1
|
@ -4,7 +4,7 @@ import database, ujson, sim800, dialogs, http
|
||||||
def get_profile():
|
def get_profile():
|
||||||
profile_json = database.get("tildr_profile")
|
profile_json = database.get("tildr_profile")
|
||||||
if profile_json is None:
|
if profile_json is None:
|
||||||
return {}
|
return None
|
||||||
|
|
||||||
profile = ujson.loads(profile_json)
|
profile = ujson.loads(profile_json)
|
||||||
return profile
|
return profile
|
||||||
|
|
Loading…
Reference in New Issue