#418 extracting data from related pages

This commit is contained in:
Hamid Reza Mohammadi 2023-12-14 21:05:37 +03:30
parent e912713703
commit 97485ce845

View File

@ -63,7 +63,7 @@ namespace RMuseum.Services.Implementation
PoemId = poem1.Id,
RelatedPoemId = poem2.Id,
IsPriorToRelated = true,
ChosenForMainList = true,
ChosenForMainList = false == await context.GanjoorRelatedPoems.AsNoTracking().Where(p => p.PoemId == poem1.Id && p.CachedRelatedPoemPoetUrl == poem2Cat.FullUrl).AnyAsync(),
CachedRelatedPoemPoetDeathYearInLHijri = poem2Poet.DeathYearInLHijri,
CachedRelatedPoemPoetName = poem2Poet.Name,
CachedRelatedPoemPoetUrl = poem2Cat.FullUrl,