comparison of usage stats of a selected word among all poets #471

This commit is contained in:
Hamid Reza Mohammadi 2025-03-08 17:22:09 +03:30
parent ddd61baddc
commit eca6b42c05

View File

@ -81,8 +81,8 @@ namespace RMuseum.Services.Implementation
{
if(poetId != null && parentCatId == null)
{
var poet = await _context.GanjoorPoets.AsNoTracking().Where(p => p.Id == poetId).SingleAsync();
parentCatId = poetId;
var cat = await _context.GanjoorCategories.AsNoTracking().Where(p => p.PoetId == poetId && p.ParentId == null).SingleAsync();
parentCatId = cat.Id;
}
var source =
from cwd in _context.CategoryWordCounts