Log history reads.

(cherry picked from commit 7326f29)
This commit is contained in:
Johannes Mockenhaupt 2018-01-29 10:01:07 +01:00
parent 2b995a8a73
commit 038ea06abc
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -219,8 +219,10 @@ public class RuffyScripter implements RuffyCommands {
@Override
public CommandResult readReservoirLevelAndLastBolus() {
if (readQuickInfoMenu) {
Answers.getInstance().logCustom(new CustomEvent("ComboReadQuickInfoCmd"));
return runCommand(new ReadReservoirLevelAndLastBolus());
}
Answers.getInstance().logCustom(new CustomEvent("ComboReadHistoryCmd"));
return runCommand(new ReadHistoryCommand(new PumpHistoryRequest().bolusHistory(PumpHistoryRequest.LAST)));
}
@ -819,6 +821,7 @@ public class RuffyScripter implements RuffyCommands {
@Override
public CommandResult readHistory(PumpHistoryRequest request) {
Answers.getInstance().logCustom(new CustomEvent("ComboReadHistoryCmd"));
return runCommand(new ReadHistoryCommand(request));
}