Another fix.
This commit is contained in:
@@ -327,6 +327,11 @@ class SaljicCrawler {
|
|||||||
let numberOfViewsKivi = null;
|
let numberOfViewsKivi = null;
|
||||||
let streetNumber = 0;
|
let streetNumber = 0;
|
||||||
let adStatus = status;
|
let adStatus = status;
|
||||||
|
let shortDescription = descriptions.substring(
|
||||||
|
0,
|
||||||
|
descriptions.indexOf(".")
|
||||||
|
);
|
||||||
|
let longDescription = descriptions;
|
||||||
//Extracting data - Glavne karakteristike
|
//Extracting data - Glavne karakteristike
|
||||||
let mainFieldIndex = 1;
|
let mainFieldIndex = 1;
|
||||||
do {
|
do {
|
||||||
@@ -485,26 +490,34 @@ class SaljicCrawler {
|
|||||||
renewedDate = new Date();
|
renewedDate = new Date();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const originAgencyName = AD_AGENCY.SALJIC;
|
||||||
|
const locality = "";
|
||||||
|
const municipality = "";
|
||||||
|
const city = "";
|
||||||
|
const region = "";
|
||||||
|
const entity = "";
|
||||||
|
const country = "";
|
||||||
|
|
||||||
const data = {
|
const data = {
|
||||||
url,
|
url,
|
||||||
agencyObjectId,
|
agencyObjectId,
|
||||||
originAgencyName: AD_AGENCY.SALJIC,
|
originAgencyName,
|
||||||
realEstateType,
|
realEstateType,
|
||||||
adType,
|
adType,
|
||||||
title,
|
title,
|
||||||
price,
|
price,
|
||||||
area,
|
area,
|
||||||
gardenSize,
|
gardenSize,
|
||||||
shortDescription: descriptions.substring(0, descriptions.indexOf(".")),
|
shortDescription,
|
||||||
longDescription: descriptions,
|
longDescription,
|
||||||
streetNumber,
|
streetNumber,
|
||||||
streetName,
|
streetName,
|
||||||
locality: "",
|
locality,
|
||||||
municipality: "",
|
municipality,
|
||||||
city: "",
|
city,
|
||||||
region: "",
|
region,
|
||||||
entity: "",
|
entity,
|
||||||
country: "",
|
country,
|
||||||
locationLat,
|
locationLat,
|
||||||
locationLong,
|
locationLong,
|
||||||
adStatus,
|
adStatus,
|
||||||
|
|||||||
Reference in New Issue
Block a user