Skip to content

Commit

Permalink
Merge pull request #25 from amagovpt/PPR
Browse files Browse the repository at this point in the history
Update Version
  • Loading branch information
carlosapaduarte authored Dec 10, 2024
2 parents dfc0bef + 417a1a7 commit f07daba
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 34 deletions.
62 changes: 31 additions & 31 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@nestjs/serve-static": "^3.0.1",
"@nestjs/swagger": "^6.2.1",
"@nestjs/typeorm": "9.0.1",
"@qualweb/core": "0.7.76",
"@qualweb/core": "0.7.77",
"axios": "^1.3.4",
"bcrypt": "5.1.0",
"body-parser": "^1.20.2",
Expand Down
4 changes: 3 additions & 1 deletion src/evaluation/evaluation.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,9 @@ export class EvaluationService {

const newEvaluation = new Evaluation();
newEvaluation.PageId = pageId;
newEvaluation.Title = evaluation.data.title.replace(/"/g, "");
newEvaluation.Title = evaluation.data.title
.replace(/"/g, "")
.replace(/[\u0800-\uFFFF]/g, "");
newEvaluation.Score = evaluation.data.score;
newEvaluation.Pagecode = Buffer.from(evaluation.pagecode).toString(
"base64"
Expand Down
4 changes: 4 additions & 0 deletions src/observatory/observatory.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ export class ObservatoryService {
}
}

if (websitesToFetch.length === 0) {
continue
}

pages = await this.observatoryRepository.query(
`
SELECT
Expand Down
2 changes: 1 addition & 1 deletion src/page/page.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ export class PageService {
convertStringToStringArray(numStr: string): string[] {
// remove first and last character
numStr = numStr.substring(1, numStr.length - 1);
return numStr.split(",").map((s) => s.substring(1, numStr.length - 1));
return numStr.split(",").map((s) => s.substring(1, numStr.length - 1).replace(/"+/g, ''));
}

async createMyMonitorUserWebsitePages(
Expand Down

0 comments on commit f07daba

Please sign in to comment.