From 6704f1f39a26d21cdced2e5574c1921cf6cabd62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Rebelo?= Date: Sun, 20 Jul 2025 10:31:34 +0100 Subject: [PATCH] Huami: Allow fetching multiple workouts in current day --- .../huami/operations/fetch/FetchSportsDetailsOperation.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/operations/fetch/FetchSportsDetailsOperation.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/operations/fetch/FetchSportsDetailsOperation.java index 1055181a4f..81b3505244 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/operations/fetch/FetchSportsDetailsOperation.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/operations/fetch/FetchSportsDetailsOperation.java @@ -179,11 +179,6 @@ public class FetchSportsDetailsOperation extends AbstractFetchOperation { return false; } - if (DateUtils.isToday(lastSyncTimestamp.getTimeInMillis())) { - LOG.info("Hopefully no further fetch needed, last synced timestamp is from today."); - return false; - } - if (lastSyncTimestamp.getTimeInMillis() > System.currentTimeMillis()) { LOG.warn("Not doing another fetch since last synced timestamp is in the future: {}", DateTimeUtils.formatDateTime(lastSyncTimestamp.getTime())); return false;