Skip to content

Commit

Permalink
allow additional query options in procedures query
Browse files Browse the repository at this point in the history
  • Loading branch information
chrispahm committed Jul 31, 2020
1 parent 857570d commit 9af889c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/procedure.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ module.exports = function procedure(options) {
// Detailed options
.post('https://daten.ktbl.de/feldarbeit/entry.html', {
'flaecheID': options.size,
'bodenID': options.resistance,
// 'bodenID': options.resistance,
'hofID': options.distance,
'mengeID': options.amount,
'arbeit': options.workingWidth,
// 'arbeit': options.workingWidth,
'state': '5'
})
// scrape
Expand All @@ -60,7 +60,6 @@ module.exports = function procedure(options) {
const procedureNameNode = dom.window.document.getElementsByName('gId')[0]
const machCombinationNode = dom.window.document.getElementsByName('avId')[0]


if (!procedureNameNode) return reject('Error in request, possibly query parameters dont match')
const procedure = procedureNameNode.selectedOptions[0].text
const procedureGroup = procedureGroupNode.selectedOptions[0].text
Expand Down

0 comments on commit 9af889c

Please sign in to comment.