TILDR-1073 - Fix profile initialization

sammachin-gprs
Catalin Ursachi 2018-09-04 02:06:57 +01:00
parent 42e2a5e9c2
commit ab1e6ad2bd
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ import database, ujson, sim800, dialogs, http
def get_profile():
profile_json = database.get("tildr_profile")
if profile_json is None:
return {}
return None
profile = ujson.loads(profile_json)
return profile