mirror of
https://github.com/badlogic/heissepreise.git
synced 2024-06-19 23:18:45 +02:00
Fixes #129
This commit is contained in:
parent
958c9f2d00
commit
36fd2e9705
|
@ -60,7 +60,7 @@ class ItemsChart extends View {
|
||||||
|
|
||||||
let priceChanges = new Array(uniqueDates.length);
|
let priceChanges = new Array(uniqueDates.length);
|
||||||
for (let i = 0; i < uniqueDates.length; i++) {
|
for (let i = 0; i < uniqueDates.length; i++) {
|
||||||
priceChanges[i] = { date: uniqueDates[i], price: 0 };
|
priceChanges[i] = { date: uniqueDates[i], price: 0, unitPrice: 0 };
|
||||||
}
|
}
|
||||||
const priceScratch = new Array(uniqueDates.length);
|
const priceScratch = new Array(uniqueDates.length);
|
||||||
items.forEach((product) => {
|
items.forEach((product) => {
|
||||||
|
@ -87,6 +87,7 @@ class ItemsChart extends View {
|
||||||
for (let i = 0; i < priceScratch.length; i++) {
|
for (let i = 0; i < priceScratch.length; i++) {
|
||||||
const price = priceScratch[i];
|
const price = priceScratch[i];
|
||||||
priceChanges[i].price += price;
|
priceChanges[i].price += price;
|
||||||
|
priceChanges[i].unitPrice += price;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -514,13 +514,13 @@
|
||||||
"code": "57"
|
"code": "57"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "sauerkonserven",
|
"id": "fleisch-fischkonserven",
|
||||||
"url": "https://www.roksh.at/hofer/angebot/sauerkonserven",
|
"url": "https://www.roksh.at/hofer/angebot/fleisch-fischkonserven",
|
||||||
"code": "57"
|
"code": "57"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "fleisch-fischkonserven",
|
"id": "sauerkonserven",
|
||||||
"url": "https://www.roksh.at/hofer/angebot/fleisch-fischkonserven",
|
"url": "https://www.roksh.at/hofer/angebot/sauerkonserven",
|
||||||
"code": "57"
|
"code": "57"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -533,6 +533,11 @@
|
||||||
"url": "https://www.roksh.at/hofer/angebot/trockenfruchte",
|
"url": "https://www.roksh.at/hofer/angebot/trockenfruchte",
|
||||||
"code": "03"
|
"code": "03"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "tafelschokolade",
|
||||||
|
"url": "https://www.roksh.at/hofer/angebot/tafelschokolade",
|
||||||
|
"code": "64"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "bonbons-kaugummi",
|
"id": "bonbons-kaugummi",
|
||||||
"url": "https://www.roksh.at/hofer/angebot/bonbons-kaugummi",
|
"url": "https://www.roksh.at/hofer/angebot/bonbons-kaugummi",
|
||||||
|
@ -543,11 +548,6 @@
|
||||||
"url": "https://www.roksh.at/hofer/angebot/waffeln",
|
"url": "https://www.roksh.at/hofer/angebot/waffeln",
|
||||||
"code": "60"
|
"code": "60"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"id": "tafelschokolade",
|
|
||||||
"url": "https://www.roksh.at/hofer/angebot/tafelschokolade",
|
|
||||||
"code": "64"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"id": "kekse",
|
"id": "kekse",
|
||||||
"url": "https://www.roksh.at/hofer/angebot/kekse",
|
"url": "https://www.roksh.at/hofer/angebot/kekse",
|
||||||
|
|
|
@ -2894,6 +2894,11 @@
|
||||||
"url": "https://www.mueller.at/genusswelt/aktionen/",
|
"url": "https://www.mueller.at/genusswelt/aktionen/",
|
||||||
"code": null
|
"code": null
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "Genusswelt/Aktionen/Aus dem Prospekt",
|
||||||
|
"url": "https://www.mueller.at/genusswelt/aktionen/aus-dem-prospekt/",
|
||||||
|
"code": null
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "Tiershop/Tiernahrung",
|
"id": "Tiershop/Tiernahrung",
|
||||||
"url": "https://www.mueller.at/tiershop/tiernahrung/",
|
"url": "https://www.mueller.at/tiershop/tiernahrung/",
|
||||||
|
@ -3079,6 +3084,11 @@
|
||||||
"url": "https://www.mueller.at/tiershop/marken/bosch-tiernahrung/bosch-heimat-tiernahrung/",
|
"url": "https://www.mueller.at/tiershop/marken/bosch-tiernahrung/bosch-heimat-tiernahrung/",
|
||||||
"code": "90"
|
"code": "90"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "Tiershop/Marken/bosch Tiernahrung/bosch Tierschutz",
|
||||||
|
"url": "https://www.mueller.at/tiershop/marken/bosch-tiernahrung/bosch-tierschutz/",
|
||||||
|
"code": null
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "Tiershop/Marken/CALIMBA",
|
"id": "Tiershop/Marken/CALIMBA",
|
||||||
"url": "https://www.mueller.at/tiershop/marken/calimba/",
|
"url": "https://www.mueller.at/tiershop/marken/calimba/",
|
||||||
|
|
|
@ -89,6 +89,11 @@
|
||||||
"url": "https://www.penny.at/kategorie/fleisch-13035",
|
"url": "https://www.penny.at/kategorie/fleisch-13035",
|
||||||
"code": "32"
|
"code": "32"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "Kühlwaren -> Fisch",
|
||||||
|
"url": "https://www.penny.at/kategorie/fisch-13045",
|
||||||
|
"code": "39"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "Kühlwaren -> Käse, Aufstriche & Salate",
|
"id": "Kühlwaren -> Käse, Aufstriche & Salate",
|
||||||
"url": "https://www.penny.at/kategorie/kaese-aufstriche-und-salate-13038",
|
"url": "https://www.penny.at/kategorie/kaese-aufstriche-und-salate-13038",
|
||||||
|
@ -99,6 +104,16 @@
|
||||||
"url": "https://www.penny.at/kategorie/schnelle-kueche-13033",
|
"url": "https://www.penny.at/kategorie/schnelle-kueche-13033",
|
||||||
"code": "30"
|
"code": "30"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "Kühlwaren -> Eier",
|
||||||
|
"url": "https://www.penny.at/kategorie/eier-13034",
|
||||||
|
"code": "31"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "Kühlwaren -> Tofu & Vegetarische/Vegane Produkte",
|
||||||
|
"url": "https://www.penny.at/kategorie/tofu-und-vegetarischevegane-produkte-13046",
|
||||||
|
"code": "3B"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "Kühlwaren -> Blätterteig & Strudelteig",
|
"id": "Kühlwaren -> Blätterteig & Strudelteig",
|
||||||
"url": "https://www.penny.at/kategorie/blaetterteig-und-strudelteig-13043",
|
"url": "https://www.penny.at/kategorie/blaetterteig-und-strudelteig-13043",
|
||||||
|
@ -109,6 +124,11 @@
|
||||||
"url": "https://www.penny.at/kategorie/tiefkuehl-13047",
|
"url": "https://www.penny.at/kategorie/tiefkuehl-13047",
|
||||||
"code": "40"
|
"code": "40"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "Tiefkühl -> Desserts & Früchte",
|
||||||
|
"url": "https://www.penny.at/kategorie/desserts-und-fruechte-13054",
|
||||||
|
"code": "47"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "Tiefkühl -> Eis",
|
"id": "Tiefkühl -> Eis",
|
||||||
"url": "https://www.penny.at/kategorie/eis-13048",
|
"url": "https://www.penny.at/kategorie/eis-13048",
|
||||||
|
@ -139,16 +159,31 @@
|
||||||
"url": "https://www.penny.at/kategorie/fertiggerichte-13059",
|
"url": "https://www.penny.at/kategorie/fertiggerichte-13059",
|
||||||
"code": "54"
|
"code": "54"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "Grundnahrungsmittel -> Konserven & Sauerwaren",
|
||||||
|
"url": "https://www.penny.at/kategorie/konserven-und-sauerwaren-13062",
|
||||||
|
"code": "57"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "Grundnahrungsmittel -> Essig & Öle",
|
"id": "Grundnahrungsmittel -> Essig & Öle",
|
||||||
"url": "https://www.penny.at/kategorie/essig-und-oele-13058",
|
"url": "https://www.penny.at/kategorie/essig-und-oele-13058",
|
||||||
"code": "53"
|
"code": "53"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "Grundnahrungsmittel -> Gewürze & Würzmittel",
|
||||||
|
"url": "https://www.penny.at/kategorie/gewuerze-und-wuerzmittel-13060",
|
||||||
|
"code": null
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "Grundnahrungsmittel -> Zucker & Süßstoffe",
|
"id": "Grundnahrungsmittel -> Zucker & Süßstoffe",
|
||||||
"url": "https://www.penny.at/kategorie/zucker-und-suessstoffe-13069",
|
"url": "https://www.penny.at/kategorie/zucker-und-suessstoffe-13069",
|
||||||
"code": "5E"
|
"code": "5E"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "Grundnahrungsmittel -> Basisprodukte",
|
||||||
|
"url": "https://www.penny.at/kategorie/basisprodukte-13070",
|
||||||
|
"code": null
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "Grundnahrungsmittel -> Müsli & Cerealien",
|
"id": "Grundnahrungsmittel -> Müsli & Cerealien",
|
||||||
"url": "https://www.penny.at/kategorie/muesli-und-cerealien-13065",
|
"url": "https://www.penny.at/kategorie/muesli-und-cerealien-13065",
|
||||||
|
@ -204,11 +239,26 @@
|
||||||
"url": "https://www.penny.at/kategorie/chips-und-co-13073",
|
"url": "https://www.penny.at/kategorie/chips-und-co-13073",
|
||||||
"code": "63"
|
"code": "63"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "Haustier",
|
||||||
|
"url": "https://www.penny.at/kategorie/haustier-13090",
|
||||||
|
"code": "90"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "Haustier -> Katzen",
|
||||||
|
"url": "https://www.penny.at/kategorie/katzen-13092",
|
||||||
|
"code": "91"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "Haushalt",
|
"id": "Haushalt",
|
||||||
"url": "https://www.penny.at/kategorie/haushalt-13089",
|
"url": "https://www.penny.at/kategorie/haushalt-13089",
|
||||||
"code": "80"
|
"code": "80"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "Haushalt -> Küchenrollen & WC-Papier",
|
||||||
|
"url": "https://www.penny.at/kategorie/kuechenrollen-und-wcpapier-13094",
|
||||||
|
"code": "84"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "Haushalt -> Waschmittel & Weichspüler",
|
"id": "Haushalt -> Waschmittel & Weichspüler",
|
||||||
"url": "https://www.penny.at/kategorie/waschmittel-und-weichspueler-13099",
|
"url": "https://www.penny.at/kategorie/waschmittel-und-weichspueler-13099",
|
||||||
|
@ -219,6 +269,11 @@
|
||||||
"url": "https://www.penny.at/kategorie/reinigen-und-pflegen-13097",
|
"url": "https://www.penny.at/kategorie/reinigen-und-pflegen-13097",
|
||||||
"code": "88"
|
"code": "88"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "Haushalt -> Raumsprays & Kerzen",
|
||||||
|
"url": "https://www.penny.at/kategorie/raumsprays-und-kerzen-13096",
|
||||||
|
"code": null
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "Haushalt -> Pflanzen & Blumen",
|
"id": "Haushalt -> Pflanzen & Blumen",
|
||||||
"url": "https://www.penny.at/kategorie/pflanzen-und-blumen-13100",
|
"url": "https://www.penny.at/kategorie/pflanzen-und-blumen-13100",
|
||||||
|
@ -244,6 +299,11 @@
|
||||||
"url": "https://www.penny.at/kategorie/seifen-und-duschbaeder-13085",
|
"url": "https://www.penny.at/kategorie/seifen-und-duschbaeder-13085",
|
||||||
"code": "78"
|
"code": "78"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "Pflege -> Mund- & Zahnhygiene",
|
||||||
|
"url": "https://www.penny.at/kategorie/mund-und-zahnhygiene-13083",
|
||||||
|
"code": null
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "Pflege -> Deodrants",
|
"id": "Pflege -> Deodrants",
|
||||||
"url": "https://www.penny.at/kategorie/deodrants-13079",
|
"url": "https://www.penny.at/kategorie/deodrants-13079",
|
||||||
|
@ -254,6 +314,16 @@
|
||||||
"url": "https://www.penny.at/kategorie/haarpflege-und-haarfarben-13080",
|
"url": "https://www.penny.at/kategorie/haarpflege-und-haarfarben-13080",
|
||||||
"code": "73"
|
"code": "73"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "Pflege -> Baby",
|
||||||
|
"url": "https://www.penny.at/kategorie/baby-13077",
|
||||||
|
"code": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "Pflege -> Sonnen- & Insektenschutzmittel",
|
||||||
|
"url": "https://www.penny.at/kategorie/sonnen-und-insektenschutzmittel-13088",
|
||||||
|
"code": "79"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "Non-Food",
|
"id": "Non-Food",
|
||||||
"url": "https://www.penny.at/kategorie/nonfood-13106",
|
"url": "https://www.penny.at/kategorie/nonfood-13106",
|
||||||
|
@ -269,6 +339,11 @@
|
||||||
"url": "https://www.penny.at/kategorie/koerbe-koffer-und-co-13112",
|
"url": "https://www.penny.at/kategorie/koerbe-koffer-und-co-13112",
|
||||||
"code": null
|
"code": null
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "Non-Food -> Haushalt",
|
||||||
|
"url": "https://www.penny.at/kategorie/haushalt-13109",
|
||||||
|
"code": "82"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "Non-Food -> Bekleidung & Textilien",
|
"id": "Non-Food -> Bekleidung & Textilien",
|
||||||
"url": "https://www.penny.at/kategorie/bekleidung-und-textilien-13107",
|
"url": "https://www.penny.at/kategorie/bekleidung-und-textilien-13107",
|
||||||
|
@ -279,89 +354,39 @@
|
||||||
"url": "https://www.penny.at/kategorie/saison-13111",
|
"url": "https://www.penny.at/kategorie/saison-13111",
|
||||||
"code": null
|
"code": null
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "Non-Food -> Küche",
|
||||||
|
"url": "https://www.penny.at/kategorie/kueche-13108",
|
||||||
|
"code": "83"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "Brot & Gebäck -> Aufbackbrötchen & Toast",
|
"id": "Brot & Gebäck -> Aufbackbrötchen & Toast",
|
||||||
"url": "https://www.penny.at/kategorie/aufbackbroetchen-und-toast-13019",
|
"url": "https://www.penny.at/kategorie/aufbackbroetchen-und-toast-13019",
|
||||||
"code": "10"
|
"code": "10"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"id": "Kühlwaren -> Fisch",
|
|
||||||
"url": "https://www.penny.at/kategorie/fisch-13045",
|
|
||||||
"code": "39"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "Kühlwaren -> Eier",
|
|
||||||
"url": "https://www.penny.at/kategorie/eier-13034",
|
|
||||||
"code": "31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "Kühlwaren -> Tofu & Vegetarische/Vegane Produkte",
|
|
||||||
"url": "https://www.penny.at/kategorie/tofu-und-vegetarischevegane-produkte-13046",
|
|
||||||
"code": "3B"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "Tiefkühl -> Desserts & Früchte",
|
|
||||||
"url": "https://www.penny.at/kategorie/desserts-und-fruechte-13054",
|
|
||||||
"code": "47"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"id": "Tiefkühl -> Gemüse & Kräuter",
|
"id": "Tiefkühl -> Gemüse & Kräuter",
|
||||||
"url": "https://www.penny.at/kategorie/gemuese-und-kraeuter-13051",
|
"url": "https://www.penny.at/kategorie/gemuese-und-kraeuter-13051",
|
||||||
"code": "44"
|
"code": "44"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"id": "Grundnahrungsmittel -> Konserven & Sauerwaren",
|
|
||||||
"url": "https://www.penny.at/kategorie/konserven-und-sauerwaren-13062",
|
|
||||||
"code": "57"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"id": "Süßes & Salziges -> Müsliriegel",
|
"id": "Süßes & Salziges -> Müsliriegel",
|
||||||
"url": "https://www.penny.at/kategorie/muesliriegel-13072",
|
"url": "https://www.penny.at/kategorie/muesliriegel-13072",
|
||||||
"code": "62"
|
"code": "62"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"id": "Haustier",
|
|
||||||
"url": "https://www.penny.at/kategorie/haustier-13090",
|
|
||||||
"code": "90"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"id": "Haustier -> Hunde",
|
"id": "Haustier -> Hunde",
|
||||||
"url": "https://www.penny.at/kategorie/hunde-13091",
|
"url": "https://www.penny.at/kategorie/hunde-13091",
|
||||||
"code": "90"
|
"code": "90"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"id": "Haustier -> Katzen",
|
|
||||||
"url": "https://www.penny.at/kategorie/katzen-13092",
|
|
||||||
"code": "91"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "Haushalt -> Küchenrollen & WC-Papier",
|
|
||||||
"url": "https://www.penny.at/kategorie/kuechenrollen-und-wcpapier-13094",
|
|
||||||
"code": "84"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"id": "Haushalt -> Taschentücher & Servietten",
|
"id": "Haushalt -> Taschentücher & Servietten",
|
||||||
"url": "https://www.penny.at/kategorie/taschentuecher-und-servietten-13098",
|
"url": "https://www.penny.at/kategorie/taschentuecher-und-servietten-13098",
|
||||||
"code": "89"
|
"code": "89"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"id": "Pflege -> Sonnen- & Insektenschutzmittel",
|
|
||||||
"url": "https://www.penny.at/kategorie/sonnen-und-insektenschutzmittel-13088",
|
|
||||||
"code": "79"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"id": "Pflege -> Strumpfhosen & Socken",
|
"id": "Pflege -> Strumpfhosen & Socken",
|
||||||
"url": "https://www.penny.at/kategorie/strumpfhosen-und-socken-13086",
|
"url": "https://www.penny.at/kategorie/strumpfhosen-und-socken-13086",
|
||||||
"code": "7C"
|
"code": "7C"
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "Non-Food -> Haushalt",
|
|
||||||
"url": "https://www.penny.at/kategorie/haushalt-13109",
|
|
||||||
"code": "82"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "Non-Food -> Küche",
|
|
||||||
"url": "https://www.penny.at/kategorie/kueche-13108",
|
|
||||||
"code": "83"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
Loading…
Reference in New Issue
Block a user