Merge pull request 'Deploy to stage' (#95) from staging into production

Reviewed-on: #95
This commit is contained in:
zelda 2025-10-27 13:29:33 +11:00
commit c4a14ac77a
2 changed files with 3 additions and 2 deletions

View File

@ -38,7 +38,8 @@ export class GraysScrapModel extends ScrapModel {
};
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 = [];
for (const el of elements) {

View File

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