From 97485ce8458288577c9f9c5ad077d63514fc4c2a Mon Sep 17 00:00:00 2001 From: Hamid Reza Mohammadi Date: Thu, 14 Dec 2023 21:05:37 +0330 Subject: [PATCH] #418 extracting data from related pages --- .../GanjoorService-Partials/GanjoorService-RelatedPoems.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-RelatedPoems.cs b/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-RelatedPoems.cs index 769eb17a..664a30b5 100644 --- a/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-RelatedPoems.cs +++ b/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-RelatedPoems.cs @@ -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,