double check units are in profile
This commit is contained in:
parent
5a27f9afa1
commit
ebf56d0032
|
@ -125,6 +125,12 @@ public class Profile {
|
||||||
}
|
}
|
||||||
|
|
||||||
public JSONObject getData() {
|
public JSONObject getData() {
|
||||||
|
if (!json.has("units"))
|
||||||
|
try {
|
||||||
|
json.put("units", units);
|
||||||
|
} catch (JSONException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue