stats for poems couplet counts in categories

#464
This commit is contained in:
Hamid Reza Mohammadi 2025-01-30 14:24:13 +03:30
parent 90983cfd1c
commit 7a3e95f9c0

View File

@ -331,6 +331,7 @@ namespace RMuseum.Services.Implementation
int minCouplets = 100000;
foreach (var coupletCount in groupedCoupletCounts)
{
if (coupletCount.Key == 0) continue;
coupletCountsList.Add(new SectionCoupletCount() { CoupletCount = coupletCount.Key, Count = coupletCount.Value });
if(coupletCount.Key > maxCouplets)
{
@ -667,6 +668,7 @@ namespace RMuseum.Services.Implementation
int minCouplets = 100000;
foreach (var coupletCount in groupedCoupletCounts)
{
if (coupletCount.Key == 0) continue;
coupletCountsList.Add(new SectionCoupletCount() { CoupletCount = coupletCount.Key, Count = coupletCount.Value });
if (coupletCount.Key > maxCouplets)
{
@ -1113,6 +1115,7 @@ namespace RMuseum.Services.Implementation
List<SectionCoupletCount> coupletCountsList = new List<SectionCoupletCount>();
foreach (var coupletCount in groupedCoupletCounts)
{
if (coupletCount.Key == 0) continue;
coupletCountsList.Add(new SectionCoupletCount() { CoupletCount = coupletCount.Key, Count = coupletCount.Value });
}
coupletCountsList.Sort((a, b) => b.Count - a.Count);