From e0315343ad3e6a72539a597db2f7b85567664269 Mon Sep 17 00:00:00 2001 From: Mikolaj Kieres Date: Mon, 29 Apr 2024 20:08:24 +1000 Subject: [PATCH] fixing wrong logic for retrieving plays stats for custom dates. updating macos hosted agent to 13 (#261) --- board_games_companion/ios/Podfile.lock | 2 +- board_games_companion/lib/pages/plays/plays_view_model.dart | 4 +++- pipelines/mobile_app/deploy-pipeline.yml | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/board_games_companion/ios/Podfile.lock b/board_games_companion/ios/Podfile.lock index b83f835b..c0f006ec 100644 --- a/board_games_companion/ios/Podfile.lock +++ b/board_games_companion/ios/Podfile.lock @@ -283,4 +283,4 @@ SPEC CHECKSUMS: PODFILE CHECKSUM: 84b7f0ad7428cb894ad73bf70c77827d7438b18a -COCOAPODS: 1.14.3 +COCOAPODS: 1.15.2 diff --git a/board_games_companion/lib/pages/plays/plays_view_model.dart b/board_games_companion/lib/pages/plays/plays_view_model.dart index 58ea3369..d516d00a 100644 --- a/board_games_companion/lib/pages/plays/plays_view_model.dart +++ b/board_games_companion/lib/pages/plays/plays_view_model.dart @@ -285,7 +285,9 @@ abstract class _PlaysViewModel with Store { } final boardGamePlaythroughsInPeriod = historicalPlaythroughs - .where((hp) => hp.boardGamePlaythroughs.playthrough.endDate! >= timePeriodFrom) + .where((hp) => + hp.boardGamePlaythroughs.playthrough.endDate! >= timePeriodFrom && + hp.boardGamePlaythroughs.playthrough.endDate! <= timePeriodTo) .map((hp) => hp.boardGamePlaythroughs) .toList(); if (boardGamePlaythroughsInPeriod.isEmpty) { diff --git a/pipelines/mobile_app/deploy-pipeline.yml b/pipelines/mobile_app/deploy-pipeline.yml index 0113e22a..1304f8e0 100644 --- a/pipelines/mobile_app/deploy-pipeline.yml +++ b/pipelines/mobile_app/deploy-pipeline.yml @@ -156,7 +156,7 @@ stages: condition: or(eq('${{ parameters.publishIOS }}', 'true'), in(variables['Build.Reason'], 'BatchedCI', 'IndividualCI')) timeoutInMinutes: 30 pool: - vmImage: "macOS-12" + vmImage: "macOS-13" steps: - task: FlutterInstall@0