mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
bugfixes and improvements
This commit is contained in:
@@ -44,6 +44,7 @@ function normalize(o) {
|
||||
const link = `https://www.wg-gesucht.de${o.link}`;
|
||||
const image = o.image != null ? o.image.replace('small', 'large') : null;
|
||||
const [rooms, city, road] = o.details?.split(' | ') || [];
|
||||
const address = [city, road].filter(Boolean).join(', ') || null;
|
||||
return {
|
||||
id,
|
||||
link,
|
||||
@@ -51,7 +52,7 @@ function normalize(o) {
|
||||
price: extractNumber(o.price),
|
||||
size: extractNumber(o.size),
|
||||
rooms: extractNumber(rooms),
|
||||
address: `${city}, ${road}`,
|
||||
address,
|
||||
image,
|
||||
description: o.description,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user