Skip to content

Commit

Permalink
Adapted load of tour table and new range images
Browse files Browse the repository at this point in the history
  • Loading branch information
martinheppner committed Dec 13, 2024
1 parent 3dbaa3b commit 9bc847f
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 2 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added public/range-image/kanton-basel-stadt.webp
Binary file not shown.
File renamed without changes.
Binary file not shown.
Binary file modified public/range-image/neckar-tauber-gaeuplatten.webp
Binary file not shown.
Binary file not shown.
Binary file added public/range-image/provence-alpes-cote-dazur.webp
Binary file not shown.
3 changes: 1 addition & 2 deletions src/utils/gpx/gpxUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const setTourImageURL = async (tour_id, image_url) => {

try {
await knex.raw(`UPDATE tour SET image_url='${image_url}' WHERE id=${tour_id} AND image_url IS NULL;`)
console.log(`UPDATE tour SET image_url='${image_url}' WHERE id=${tour_id} AND image_url IS NULL;`)
// console.log(`UPDATE tour SET image_url='${image_url}' WHERE id=${tour_id} AND image_url IS NULL;`)
}
catch(e) {
console.error(`Error in setTourImageURL with tour_id=${tour_id}: `, e)
Expand All @@ -74,7 +74,6 @@ export const createImagesFromMap = async (ids) => {
let url = "";
let dir_go_up = "";
if(process.env.NODE_ENV == "production"){
console.log("process.env.NODE_ENV = ", process.env.NODE_ENV)
dir_go_up = "../../";
url = "https://www.zuugle.at/public/headless-leaflet/index.html?gpx=https://www.zuugle.at/public/gpx/";
addParam.executablePath = path.resolve(__dirname,'../../node_modules/puppeteer/.local-chromium/linux-1022525/chrome-linux/chrome')
Expand Down

0 comments on commit 9bc847f

Please sign in to comment.