fix upload without enact

This commit is contained in:
Milos Kozak 2016-06-24 22:27:25 +02:00
parent 88ac01f58d
commit 3d16e874ad
2 changed files with 9 additions and 10 deletions

View file

@ -375,18 +375,17 @@ import info.nightscout.androidaps.Services.Intents;
public class DeviceStatus {
private static Logger log = LoggerFactory.getLogger(DeviceStatus.class);
public static DeviceStatus deviceStatus;
public static String device = null;
public static JSONObject pump = null;
public static JSONObject enacted = null;
public static JSONObject suggested = null;
public static JSONObject iob = null;
public static String created_at = null;
public String device = null;
public JSONObject pump = null;
public JSONObject enacted = null;
public JSONObject suggested = null;
public JSONObject iob = null;
public String created_at = null;
public static JSONObject lowsuspend = null;
public JSONObject lowsuspend = null;
public static JSONObject mongoRecord () {
public JSONObject mongoRecord () {
JSONObject record = new JSONObject();
try {

View file

@ -277,7 +277,7 @@ public class LoopFragment extends Fragment implements View.OnClickListener, Plug
lastRun.request = result;
lastRun.constraintsProcessed = resultAfterConstraints;
lastRun.setByPump = null;
lastRun.source = null;
lastRun.source = ((PluginBase) usedAPS).getName();
lastRun.lastAPSRun = new Date();
}
updateGUI();