From 8e096e0c7c3c2808cdf316a809ba2568c55988ce Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 8 Mar 2026 18:38:51 -0500 Subject: ready report queries for retries --- src/slskd/Telemetry/ReportsService.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/slskd/Telemetry/ReportsService.cs b/src/slskd/Telemetry/ReportsService.cs index da325dc0..2c9308ad 100644 --- a/src/slskd/Telemetry/ReportsService.cs +++ b/src/slskd/Telemetry/ReportsService.cs @@ -23,6 +23,7 @@ using System.Linq; using Dapper; using Microsoft.Data.Sqlite; using Serilog; +using slskd.Transfers; using Soulseek; /// @@ -84,6 +85,7 @@ public class ReportsService FROM Transfers WHERE EndedAt IS NOT NULL AND EndedAt BETWEEN @Start AND @End + AND State IN ({string.Join(", ", TransferStateCategories.Completed.Select(s => (int)s))}) {(direction is not null ? "AND Direction = @Direction" : string.Empty)} {(username is not null ? "AND Username = @Username" : string.Empty)} GROUP BY Direction, StateDescription @@ -171,6 +173,7 @@ public class ReportsService FROM Transfers WHERE EndedAt IS NOT NULL AND EndedAt BETWEEN @Start AND @End + AND State IN ({string.Join(", ", TransferStateCategories.Completed.Select(s => (int)s))}) {(direction is not null ? "AND Direction = @Direction" : string.Empty)} {(username is not null ? "AND Username = @Username" : string.Empty)} GROUP BY Interval, Direction, StateDescription -- cgit v1.2.3