Compare commits

...

2 Commits

Author SHA1 Message Date
zelda c7b0c47b98 Merge pull request 'Deploy to statge' (#94) from main into staging
Reviewed-on: #94
2025-10-27 13:29:12 +11:00
Admin acc2058bad fix element scrap grays 2025-10-27 09:28:17 +07:00
2 changed files with 3 additions and 2 deletions

View File

@ -38,7 +38,8 @@ export class GraysScrapModel extends ScrapModel {
}; };
getItemsInHtml = async (data) => { getItemsInHtml = async (data) => {
const elements = await this.page.$$(".sc-102aeaf3-1.eYPitT > div"); const elements = await this.page.$$('[style="display:block"] > div > div');
const results = []; const results = [];
for (const el of elements) { for (const el of elements) {

View File

@ -24,7 +24,7 @@ export class ScrapModel {
filterItemByKeyword(keyword, data) { filterItemByKeyword(keyword, data) {
return data.filter((item) => return data.filter((item) =>
item.name.toLowerCase().includes(keyword.toLowerCase()) item.name?.toLowerCase().includes(keyword.toLowerCase())
); );
} }