mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-08 21:08:39 +00:00
Allow searching by creator username and slot id
This commit is contained in:
parent
90c572a5e6
commit
a459ef2302
1 changed files with 3 additions and 1 deletions
|
@ -31,7 +31,9 @@ namespace ProjectLighthouse.Controllers {
|
|||
foreach(string keyword in keywords) {
|
||||
dbQuery = dbQuery.Where(s =>
|
||||
s.Name.ToLower().Contains(keyword) ||
|
||||
s.Description.ToLower().Contains(keyword)
|
||||
s.Description.ToLower().Contains(keyword) ||
|
||||
s.Creator.Username.ToLower().Contains(keyword) ||
|
||||
s.SlotId.ToString().Equals(keyword)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue