Skip to content
Snippets Groups Projects
Commit 65f5aa8b authored by Karsch Lukas's avatar Karsch Lukas
Browse files

Fixed bug in RecipeTypeAdapter (missing break statement), replaced paths to...

Fixed bug in RecipeTypeAdapter (missing break statement), replaced paths to images with URLs to gitlab repo
parent f57ebf6b
No related branches found
No related tags found
No related merge requests found
......@@ -97,6 +97,7 @@ public class RecipeTypeAdapter extends TypeAdapter<Recipe> {
} catch (URISyntaxException e) {
imagePath = null;
}
break;
default:
reader.skipValue();
break;
......
......@@ -25,5 +25,5 @@
],
"preparationTimeMins": 35,
"creationTime": "2023-07-03T13:18:30.172707800",
"imagePath": "file:/C:/Users/Lara%20Blersch/Documents/Studium/SE2/tasty-pages/target/classes/images/ChocolateCookies.jpg"
"imagePath": "https://gitlab.mi.hdm-stuttgart.de/se2-projekt/tasty-pages/-/raw/main/src/main/resources/images/ChocolateCookies.jpg"
}
\ No newline at end of file
{"name":"Hash Browns","nutritionTable":{"values":"{\"SALT\":10.02,\"CALORIES\":481.8,\"CARBS\":94.5,\"PROTEINS\":11.95,\"FAT\":2.81,\"FIBERS\":7.99}"},"code":"r-1310363946","ingredients":{"i-1564979921":50,"i2020002901":20,"i944417245":10,"i132673623":600},"description":"Easy to make and super delicious","preparation":["Peel, wash and rasp the potatoes. Then squeeze out the potatoes in a fine sieve.","Finely dice the onion and mix with the potatoes. Season with salt and thyme.","In a huge pan heat the oil. Place small amounts of the mixture in the hot oil and flatten them.","Turn after 1-2 minutes. Reduce the heat, place a lid on top and bake the hash browns for 5-10 minutes.","Serve with vegetables, salad or whatever you like."],"categories":[-1997696521],"preparationTimeMins":10,"creationTime":"2023-07-03T13:36:18.668413900","imagePath":"file:/C:/Users/Lara%20Blersch/Documents/Studium/SE2/tasty-pages/target/classes/images/Kartoffelrösties.jpg"}
\ No newline at end of file
{
"name": "Hash Browns",
"nutritionTable": {
"values": "{\"SALT\":10.02,\"CALORIES\":481.8,\"CARBS\":94.5,\"PROTEINS\":11.95,\"FAT\":2.81,\"FIBERS\":7.99}"
},
"code": "r-1310363946",
"ingredients": {
"i-1564979921": 50,
"i2020002901": 20,
"i944417245": 10,
"i132673623": 600
},
"description": "Easy to make and super delicious",
"preparation": [
"Peel, wash and rasp the potatoes. Then squeeze out the potatoes in a fine sieve.",
"Finely dice the onion and mix with the potatoes. Season with salt and thyme.",
"In a huge pan heat the oil. Place small amounts of the mixture in the hot oil and flatten them.",
"Turn after 1-2 minutes. Reduce the heat, place a lid on top and bake the hash browns for 5-10 minutes.",
"Serve with vegetables, salad or whatever you like."
],
"categories": [
-1997696521
],
"preparationTimeMins": 10,
"creationTime": "2023-07-03T13:36:18.668413900",
"imagePath": "https://gitlab.mi.hdm-stuttgart.de/se2-projekt/tasty-pages/-/raw/main/src/main/resources/images/Kartoffelrösties.jpg"
}
\ No newline at end of file
{"name":"Pasta with almond pepper sauce","nutritionTable":{"values":"{\"SALT\":22.5014,\"CALORIES\":2542.7,\"CARBS\":372.7,\"PROTEINS\":85.56,\"FAT\":104.93,\"FIBERS\":46.08}"},"code":"r119776741","ingredients":{"i81128685":500,"i-875230352":500,"i-961511074":120,"i2020002901":50,"i1482058374":20},"description":"Ready in 20 minutes","preparation":["Cook the pasta al dente according to the package directions.","In the meantime, roast the almonds in a pan.","In a blender mix the roasted almonds, peppers, olive oil and garlic. Season with salt and pepper.","Drain the pasta, mix with the sauce and serve with almonds on top."],"categories":[-1997696521],"preparationTimeMins":20,"creationTime":"2023-07-03T13:47:51.041720300","imagePath":"file:/C:/Users/Lara%20Blersch/Documents/Studium/SE2/tasty-pages/target/classes/images/Paprika-Mandel-Pasta.jpg"}
\ No newline at end of file
{
"name": "Pasta with almond pepper sauce",
"nutritionTable": {
"values": "{\"SALT\":22.5014,\"CALORIES\":2542.7,\"CARBS\":372.7,\"PROTEINS\":85.56,\"FAT\":104.93,\"FIBERS\":46.08}"
},
"code": "r119776741",
"ingredients": {
"i81128685": 500,
"i-875230352": 500,
"i-961511074": 120,
"i2020002901": 50,
"i1482058374": 20
},
"description": "Ready in 20 minutes",
"preparation": [
"Cook the pasta al dente according to the package directions.",
"In the meantime, roast the almonds in a pan.",
"In a blender mix the roasted almonds, peppers, olive oil and garlic. Season with salt and pepper.",
"Drain the pasta, mix with the sauce and serve with almonds on top."
],
"categories": [
-1997696521
],
"preparationTimeMins": 20,
"creationTime": "2023-07-03T13:47:51.041720300",
"imagePath": "https://gitlab.mi.hdm-stuttgart.de/se2-projekt/tasty-pages/-/raw/main/src/main/resources/images/Paprika-Mandel-Pasta.jpg"
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment