Compare commits

...

2 commits

Author SHA1 Message Date
Imbus
d52e1507d7 Table names in getCookies 2024-05-04 13:40:31 +02:00
Imbus
25f5dd151d Name changes 2024-05-04 13:40:12 +02:00
2 changed files with 3 additions and 3 deletions

View file

@ -12,7 +12,7 @@ VALUES
(8, 'Småbröd AB', 'Malmö');
INSERT
OR IGNORE INTO recipes (recipe_name)
OR IGNORE INTO cookies (cookie_name)
VALUES
('Nut ring'),
('Nut cookie'),
@ -22,7 +22,7 @@ VALUES
('Berliner');
INSERT
OR IGNORE INTO ingredients (ingredient_name, amount, unit)
OR IGNORE INTO raw_materials(ingredient_name, ingredient_quantity, unit)
VALUES
('Bread crumbs', 500000, 'g'),
('Butter', 500000, 'g'),

View file

@ -40,7 +40,7 @@ public class Database {
}
public String getCookies(Request req, Response res) {
String result = selectQuery("recipes", "cookies", "recipe_name");
String result = selectQuery("cookies", "cookies", "recipe_name");
result = result.replaceAll("recipe_name", "name");
return result;
}