Don't use store-id for Billa, will omit products otherwise.

This commit is contained in:
Mario Zechner 2023-05-22 13:54:38 +02:00
parent d872ec0c52
commit 856f08c71f
2 changed files with 19 additions and 1 deletions

18
.vscode/launch.json vendored
View File

@ -4,6 +4,24 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "restore",
"program": "${workspaceFolder}/restore",
"request": "launch",
"skipFiles": [
"<node_internals>/**"
],
"type": "node"
},
{
"name": "stuff",
"program": "${workspaceFolder}/stuff.js",
"request": "launch",
"skipFiles": [
"<node_internals>/**"
],
"type": "node"
},
{
"name": "analysis",
"program": "${workspaceFolder}/analysis.js",

View File

@ -183,7 +183,7 @@ exports.replay = function(rawDataDir) {
const HITS = Math.floor(30000 + Math.random() * 2000);
const SPAR_SEARCH = `https://search-spar.spar-ics.com/fact-finder/rest/v4/search/products_lmos_at?query=*&q=*&page=1&hitsPerPage=${HITS}`;
const BILLA_SEARCH = `https://shop.billa.at/api/search/full?searchTerm=*&storeId=00-10&pageSize=${HITS}`;
const BILLA_SEARCH = `https://shop.billa.at/api/search/full?searchTerm=*&pageSize=${HITS}`;
exports.updateData = async function (dataDir, done) {
const today = currentDate();