-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #104 from ucsd-cse110-fa23/image-preview
Image preview
- Loading branch information
Showing
15 changed files
with
118 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
public class SendRecipeDB { | ||
|
||
public static void sendRecipeDB(String id, String recipeName, String recipeIngredients, String recipeInstructions, | ||
String mealType) { | ||
String mealType, String url) { | ||
String uri = "mongodb+srv://aditijain:[email protected]/?retryWrites=true&w=majority"; | ||
try (MongoClient mongoClient = MongoClients.create(uri)) { | ||
|
||
|
@@ -22,7 +22,8 @@ public static void sendRecipeDB(String id, String recipeName, String recipeIngre | |
Document recipe = new Document("_id", new ObjectId()) | ||
.append("userID", server.Login.getID()).append("recipeName", recipeName) | ||
.append("recipeIngredients", recipeIngredients).append("recipeInstructions", recipeInstructions) | ||
.append("mealType", mealType); | ||
.append("mealType", mealType) | ||
.append("url", url); | ||
accountsCollection.insertOne(recipe); | ||
|
||
System.out.println("Recipe Stored for user:" + id); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters