Compare commits

..

No commits in common. "f645607adfe3327f2102bdef54f83ce95507211a" and "9829d40ee9a7deb22abc64e51b4aae7c651eb326" have entirely different histories.

2 changed files with 2 additions and 3 deletions

View file

@ -1,7 +1,7 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the // For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/alpine // README at: https://github.com/devcontainers/templates/tree/main/src/alpine
{ {
"name": "Debian", "name": "Alpine",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/base:debian", "image": "mcr.microsoft.com/devcontainers/base:debian",
"features": { "features": {

View file

@ -11,8 +11,7 @@ export const load: PageServerLoad = async ({ url }) => {
join precios p on p.ean = f.ean join precios p on p.ean = f.ean
where f.name match ${`"${query}"`} where f.name match ${`"${query}"`}
group by p.ean group by p.ean
having max(p.fetched_at) and max(p.in_stock) having max(p.fetched_at);`;
order by p.in_stock desc;`;
results = db.all(sqlQuery); results = db.all(sqlQuery);
} }