diff --git a/DragonFruit.Six.Api/Modern/ModernStatsExtensions.cs b/DragonFruit.Six.Api/Modern/ModernStatsExtensions.cs index 48051462..6ea432b2 100644 --- a/DragonFruit.Six.Api/Modern/ModernStatsExtensions.cs +++ b/DragonFruit.Six.Api/Modern/ModernStatsExtensions.cs @@ -27,7 +27,7 @@ public static class ModernStatsExtensions /// The to get stats for /// The to filter stats by /// The first day to return stats for. Must be within the last 120 days - /// The last day to include stats for. Must be at least 1 day before current UTC time + /// The last day to include stats for. /// Optional /// A container with the requested map stats. Will return null if no stats found [CanBeNull] @@ -54,7 +54,7 @@ public static Task>> GetMod /// The to get stats for /// The to filter stats by /// The first day to return stats for. Must be within the last 120 days - /// The last day to include stats for. Must be at least 1 day before current UTC time + /// The last day to include stats for. /// Optional /// A container with the requested operator stats. Will return null if no stats found [CanBeNull] @@ -101,7 +101,7 @@ public static Task>> Get /// The to get stats for /// The to filter stats by /// The first day to return stats for. Must be within the last 120 days - /// The last day to include stats for. Must be at least 1 day before current UTC time + /// The last day to include stats for. /// Optional /// A container with the requested stats. Will return null if no stats found. /// This returns a collection of items, but is recommended to use FirstOrDefault() to get the correct stats object @@ -129,7 +129,7 @@ public static Task>> Ge /// The to get stats for /// The to filter stats by /// The first day to return stats for. Must be within the last 120 days - /// The last day to include stats for. Must be at least 1 day before current UTC time + /// The last day to include stats for. /// Optional /// A container with the data needed to plot the graphs seen on the ubisoft stats site. Will return null if no stats found [CanBeNull] @@ -157,7 +157,7 @@ public static Task>> GetM /// The to get stats for /// The to filter stats by /// The first day to return stats for. Must be within the last 120 days - /// The last day to include stats for. Must be at least 1 day before current UTC time + /// The last day to include stats for. /// Optional /// A container with the requested weapon stats. Will return null if no stats found [CanBeNull] diff --git a/DragonFruit.Six.Api/Modern/Requests/ModernStatsRequest.cs b/DragonFruit.Six.Api/Modern/Requests/ModernStatsRequest.cs index 26f890b8..57185363 100644 --- a/DragonFruit.Six.Api/Modern/Requests/ModernStatsRequest.cs +++ b/DragonFruit.Six.Api/Modern/Requests/ModernStatsRequest.cs @@ -87,7 +87,7 @@ public virtual DateTimeOffset StartDate /// The date provided is in the future public virtual DateTimeOffset EndDate { - get => _endDate ??= DateTimeOffset.UtcNow.AddDays(-1); + get => _endDate ??= DateTimeOffset.UtcNow; set { if (DateTimeOffset.UtcNow.Date > value.Date)