Fix BGDatum json import ("_id" from aaps are always long but not "_id" from OpenAPS)
This commit is contained in:
parent
44abb7b31b
commit
d06d5f6b02
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ class BGDatum {
|
||||||
constructor(json: JSONObject, dateUtil: DateUtil) {
|
constructor(json: JSONObject, dateUtil: DateUtil) {
|
||||||
this.dateUtil = dateUtil
|
this.dateUtil = dateUtil
|
||||||
try {
|
try {
|
||||||
if (json.has("_id")) id = json.getLong("_id")
|
//if (json.has("_id")) id = json.getLong("_id")
|
||||||
if (json.has("date")) date = json.getLong("date")
|
if (json.has("date")) date = json.getLong("date")
|
||||||
if (json.has("sgv")) value = json.getDouble("sgv")
|
if (json.has("sgv")) value = json.getDouble("sgv")
|
||||||
if (json.has("direction")) direction = TrendArrow.fromString(json.getString("direction"))
|
if (json.has("direction")) direction = TrendArrow.fromString(json.getString("direction"))
|
||||||
|
|
Loading…
Reference in a new issue