From ac6b85e9392ceba851b218eb7b4aa675818f2d23 Mon Sep 17 00:00:00 2001 From: Hamid Reza Mohammadi Date: Mon, 13 Jan 2025 20:52:26 +0330 Subject: [PATCH] stats of subcategoris in a category stats #461 --- .../GanjoorService-Partials/GanjoorService-Stats.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-Stats.cs b/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-Stats.cs index 848d306f..7838741b 100644 --- a/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-Stats.cs +++ b/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-Stats.cs @@ -625,7 +625,10 @@ namespace RMuseum.Services.Implementation int subCatWholeCoupletsCount = subCatCoupletCounts[0].Count; if (subCatWholeCoupletsCount == 0) { - skippedSomeCats = true; + if(subCat.Id != catId) + { + skippedSomeCats = true; + } continue; } if (subCatIndex % 2 == 0)