From 0538546a48d1e1866f5ed228136427225a215760 Mon Sep 17 00:00:00 2001 From: Hamid Reza Mohammadi Date: Wed, 5 Mar 2025 10:49:21 +0330 Subject: [PATCH] comparison of usage stats of a selected word among all poets #471 --- .../GanjoorService-CategoryWordCounts.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-CategoryWordCounts.cs b/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-CategoryWordCounts.cs index 0f65cea9..28434f8f 100644 --- a/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-CategoryWordCounts.cs +++ b/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-CategoryWordCounts.cs @@ -81,8 +81,8 @@ namespace RMuseum.Services.Implementation from cwd in _context.CategoryWordCounts join catsum in _context.CategoryWordCountSummaries on cwd.CatId equals catsum.CatId join cat in _context.GanjoorCategories on cwd.CatId equals cat.Id - where cat.ParentId == 0 && cwd.Word == term - orderby cwd.Count + where cat.ParentId == null && cwd.Word == term + orderby cwd.Count descending select new PoetOrCatWordStat() {