aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.qml b/src/main.qml
index 48e846b..153dac4 100644
--- a/src/main.qml
+++ b/src/main.qml
@@ -56,7 +56,7 @@ Application {
Label {
width: parent.width*0.8
anchors.horizontalCenter: parent.horizontalCenter
- text: stepsDataLoader.getTodayData() ? "You've walked " + stepsDataLoader.getTodayData() + " steps today, keep it up!" : "You haven't yet logged any steps today"
+ text: stepsDataLoader.getTodayTotal() ? "You've walked " + stepsDataLoader.getTodayTotal() + " steps today, keep it up!" : "You haven't yet logged any steps today"
wrapMode: Text.WordWrap
horizontalAlignment: Text.AlignHCenter
}
@@ -88,7 +88,7 @@ Application {
for (var i = 0; i < 7; i++) {
currDate.setDate(currDate.getDate() + 1)
console.log(currDate)
- var currvalue = stepsDataLoader.getDataForDate(currDate)
+ var currvalue = stepsDataLoader.getTotalForDate(currDate)
if (currvalue > 0 || valuesArr.length > 0) {
if (currvalue > maxValue) {
maxValue = currvalue