Skip to content

Commit

Permalink
Fixed crashing bug in Withings generator
Browse files Browse the repository at this point in the history
  • Loading branch information
audaciouscode committed Jul 20, 2017
1 parent f0f7878 commit 4d2b4ec
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -1001,7 +1001,7 @@ private void fetchSleepMeasures() {
values.put(WithingsDevice.SLEEP_MEASURE_STATE, state);
values.put(WithingsDevice.SLEEP_MEASURE_MEASUREMENT_DEVICE, model);

String where = WithingsDevice.SLEEP_MEASURE_START_DATE + " ? AND " +
String where = WithingsDevice.SLEEP_MEASURE_START_DATE + " = ? AND " +
WithingsDevice.SLEEP_MEASURE_END_DATE + " = ? AND " +
WithingsDevice.SLEEP_MEASURE_STATE + " = ? AND " +
WithingsDevice.SLEEP_MEASURE_MEASUREMENT_DEVICE + " = ?";
Expand Down Expand Up @@ -1091,7 +1091,7 @@ private void fetchSleepSummary() {
values.put(WithingsDevice.SLEEP_SUMMARY_TO_WAKE_DURATION, data.getDouble("durationtowakeup"));
}

String where = WithingsDevice.SLEEP_SUMMARY_START_DATE + " ? AND " +
String where = WithingsDevice.SLEEP_SUMMARY_START_DATE + " = ? AND " +
WithingsDevice.SLEEP_SUMMARY_END_DATE + " = ? AND " +
WithingsDevice.SLEEP_SUMMARY_TIMEZONE + " = ? AND " +
WithingsDevice.SLEEP_SUMMARY_MEASUREMENT_DEVICE + " = ? AND " +
Expand Down

0 comments on commit 4d2b4ec

Please sign in to comment.