From 9af889c554a6c9afb573438f2c0fc86876627a5b Mon Sep 17 00:00:00 2001 From: Christoph Pahmeyer Date: Fri, 31 Jul 2020 12:20:55 +0200 Subject: [PATCH] allow additional query options in procedures query --- src/procedure.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/procedure.js b/src/procedure.js index c2f3ced..e3f7dc4 100644 --- a/src/procedure.js +++ b/src/procedure.js @@ -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 @@ -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