Skip to content

Commit

Permalink
#413 do not include poet sub vazn pages
Browse files Browse the repository at this point in the history
  • Loading branch information
hrmoh committed Dec 11, 2023
1 parent 8773a1b commit 2c737e0
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,10 @@ private async Task<RServiceResult<string>> _GenerateTableOfContents(RMuseumDbCon
//poet page
var poetPage = await context.GanjoorPages.AsNoTracking().Where(p => p.ParentId == null && p.PoetId == cat.PoetId && p.GanjoorPageType == GanjoorPageType.PoetPage).SingleAsync();


html += $"<p>دیگر صفحات مرتبط با {poet.Nickname} در این پایگاه:</p>{Environment.NewLine}";
/*
// do not include stats pages
var statsPage = await context.GanjoorPages.AsNoTracking()
.Where(p => p.FullUrl == $"{poetPage.FullUrl}/vazn").SingleOrDefaultAsync();
if (statsPage != null)
Expand All @@ -331,6 +334,7 @@ private async Task<RServiceResult<string>> _GenerateTableOfContents(RMuseumDbCon
html += $"<a href=\"{statsPage.FullUrl}\">اوزان اشعار {poet.Nickname}</a>{Environment.NewLine}";
html += $"</div>{Environment.NewLine}";
}
*/
var thisPoetsSimilars = await context.GanjoorPages.AsNoTracking()
.Where(p => p.GanjoorPageType == GanjoorPageType.ProsodySimilars && p.PoetId == poet.Id).ToListAsync();

Expand Down

0 comments on commit 2c737e0

Please sign in to comment.