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
// 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
"image": "mcr.microsoft.com/devcontainers/base:debian",
"features": {

View file

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