Skip to content

Commit

Permalink
Fix totem request
Browse files Browse the repository at this point in the history
  • Loading branch information
gauthier-th committed May 21, 2021
1 parent f424520 commit b4d5a5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "divia-api",
"version": "2.2.0",
"version": "2.2.1",
"description": "Dvia API v2",
"main": "src/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/Stop.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Stop {
'Content-Type': 'application/x-www-form-urlencoded',
'X-Requested-With': 'XMLHttpRequest'
},
body: `requete=arret_prochainpassage&requete_val%5Bid_ligne%5D=${this.line.data.id}&requete_val%5Bid_arret%5D=${this.data.id}`
body: `requete=arret_prochainpassage&requete_val%5Bid_ligne%5D=${this.line.data.id}&requete_val%5Bid_arret%5D=${this.data.code}`
}).then(res => res.text());
let matches;
const regex = /<span class="uk-badge">\s*(((0?|[12])\d):(\d{2}))<\/span>/gi;
Expand Down

0 comments on commit b4d5a5f

Please sign in to comment.