mirror of
https://github.com/badlogic/heissepreise.git
synced 2024-06-28 03:16:12 +02:00
Sigh, runtime error.
This commit is contained in:
parent
32083105f8
commit
2d394c2f4a
|
@ -102,7 +102,7 @@ exports.fetchData = async function () {
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log("Failed to fetch REWE-DE data, either CURL is not installed, or CloudFlare protection kicked in.");
|
console.log("Failed to fetch REWE-DE data, either CURL is not installed, or CloudFlare protection kicked in.");
|
||||||
const compressedItems = (await axios.get("https://heissepreise.github.io/data/latest-canonical.reweDe.compressed.json")).data;
|
const compressedItems = (await axios.get("https://heissepreise.github.io/data/latest-canonical.reweDe.compressed.json")).data;
|
||||||
const items = decompress.decompress(compressedItems);
|
const items = decompress(compressedItems);
|
||||||
for (const item of items) {
|
for (const item of items) {
|
||||||
item.isCanonical = true;
|
item.isCanonical = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user