mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-09 05:18:47 +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) {
|
foreach(string keyword in keywords) {
|
||||||
dbQuery = dbQuery.Where(s =>
|
dbQuery = dbQuery.Where(s =>
|
||||||
s.Name.ToLower().Contains(keyword) ||
|
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