I did an oopsie.

This commit is contained in:
2025-09-01 14:42:30 +02:00
parent 3f14371b4c
commit 8d77764751
2 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "start-fermate-api", "name": "start-fermate-api",
"version": "2.1.5", "version": "2.1.6",
"main": "server.js", "main": "server.js",
"scripts": { "scripts": {
"start": "node server.js" "start": "node server.js"

View File

@@ -5,7 +5,7 @@ const cors = require('cors');
const app = express(); const app = express();
const port = 3005; const port = 3005;
const version = "2.1.5"; const version = "2.1.6";
app.use(cors()); app.use(cors());
app.use(express.json()); app.use(express.json());
@@ -31,7 +31,7 @@ app.get('/fermata', async (req, res) => {
var stato = element.find('.bus-status').text().trim(); var stato = element.find('.bus-status').text().trim();
var linea = headerSpan.contents().filter((i, el) => el.type === 'text').text().trim(); var linea = headerSpan.contents().filter((i, el) => el.type === 'text').text().trim();
linea = linea.replace("Linea ", ""); linea = linea.replace("Linea ", "");
const destinazione = element.find('.bus-destination').text().trim(); var destinazione = element.find('.bus-destination').text().trim();
var mezzo = element.find('.det a').attr('data-vehicle') || ''; var mezzo = element.find('.det a').attr('data-vehicle') || '';
//Aggiustamenti //Aggiustamenti