Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ExcludedPeople #252

Closed
wants to merge 1 commit into from
Closed

add ExcludedPeople #252

wants to merge 1 commit into from

Conversation

3rob3
Copy link
Collaborator

@3rob3 3rob3 commented Jan 9, 2025

closes #248

@3rob3 3rob3 added the enhancement New feature or request label Jan 9, 2025
@3rob3 3rob3 requested a review from JW-CH January 9, 2025 19:14
@@ -38,6 +38,18 @@ private Task<IEnumerable<Guid>> ExcludedAlbumAssets
}
}

private Task<IEnumerable<Guid>>? _excludedPeopleAssets;
private Task<IEnumerable<Guid>> ExcludedPeopleAssets
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you query for all assets of a person when an asset has the information already, if a Person (People) exist on there?


randomAssets = randomAssets.Where(x => !excludedList.Contains(Guid.Parse(x.Id))).ToList();
randomAssets = randomAssets.Where(x => !excludedAlbumList.Contains(Guid.Parse(x.Id)) && !excludedPeopleList.Contains(Guid.Parse(x.Id))).ToList();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you could access x.People here and have access to a list of person contained on that asset. We might have a Problem when x.People is null because it was not delivered.

@3rob3 3rob3 closed this Jan 11, 2025
@3rob3 3rob3 deleted the dev.3rob3.ExcludedPeople branch January 19, 2025 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add the possibility to exclude people
2 participants