From 43bc23b1647a3a603f238dfe3049dc716a963977 Mon Sep 17 00:00:00 2001 From: Naida Vatric Date: Fri, 7 Feb 2020 22:27:01 +0100 Subject: [PATCH] Another fix. Defined more var. --- app/crawler/specificCrawlers/saljic.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/crawler/specificCrawlers/saljic.js b/app/crawler/specificCrawlers/saljic.js index b3a065c..7e445d6 100644 --- a/app/crawler/specificCrawlers/saljic.js +++ b/app/crawler/specificCrawlers/saljic.js @@ -283,8 +283,8 @@ class SaljicCrawler { const locationLong = parseFloat(longText) || null; //====== DETAIL INFORMATION FIELDS ========== - let area, - gardenSize, + let area = null, + gardenSize = null, numberOfRooms = null, numberOfFloors = null, floor = null, @@ -325,6 +325,8 @@ class SaljicCrawler { let realEstateType; let numberOfViewsAgency = null; let numberOfViewsKivi = null; + let streetNumber = 0; + let adStatus = status; //Extracting data - Glavne karakteristike let mainFieldIndex = 1; do { @@ -495,7 +497,7 @@ class SaljicCrawler { gardenSize, shortDescription: descriptions.substring(0, descriptions.indexOf(".")), longDescription: descriptions, - streetNumber: 0, + streetNumber, streetName, locality: "", municipality: "", @@ -505,7 +507,7 @@ class SaljicCrawler { country: "", locationLat, locationLong, - adStatus: status, + adStatus, publishedDate, renewedDate, numberOfRooms,