Commit Graph

89 Commits

Author SHA1 Message Date
Thomas Rubini
72fc35438c
use LIKE instead of INSTR in recipe search 2023-01-26 21:15:06 +01:00
Thomas Rubini
44f8c0e499
add ability to update recipe image 2023-01-26 20:53:32 +01:00
Thomas Rubini
2f4128beeb
deal with dates correctly 2023-01-26 20:10:11 +01:00
Thomas Rubini
04d3fdb206
use Anon user in Recipe 2023-01-26 19:57:55 +01:00
Thomas Rubini
1e80101833
add Anon user object 2023-01-26 19:50:03 +01:00
Thomas Rubini
7e63369481
Merge pull request #136 from ThomasRubini/recipe_ingredients 2023-01-26 19:21:03 +01:00
Thomas Rubini
7ef799668a
add IngredientModel::update() 2023-01-26 19:20:09 +01:00
069fca704e categories 2023-01-26 19:13:39 +01:00
Thomas Rubini
4e4126586e
make IngredientModel::insert fetch ID 2023-01-26 18:53:05 +01:00
Thomas Rubini
b664a38a66
add method RecipeModel::getSteps() 2023-01-26 17:36:35 +01:00
Thomas Rubini
97b39a4552
make apprs use new models + allow users to delete their appr 2023-01-26 16:56:51 +01:00
Thomas Rubini
dee2b23297
change recipe img link to point to action 2023-01-26 16:40:11 +01:00
05f58bd73c
Merge pull request #121 from ThomasRubini/particularity_model
particularity model done
2023-01-26 16:34:04 +01:00
a079462de4 particularity model done 2023-01-26 16:33:28 +01:00
Thomas Rubini
4bf6cda6d9
use recipe_id in IngredientModel::getByRecipeAndName 2023-01-26 16:29:49 +01:00
Thomas Rubini
fcf69dad56
remove all functions to preload recipe attributes 2023-01-26 16:25:59 +01:00
0eb560c8b8
fixed wrong id being passed 2023-01-26 15:59:14 +01:00
f70465a17a
refactored ingredient model 2023-01-26 15:59:14 +01:00
5d0e19b45f refactored appr model references 2023-01-26 15:47:10 +01:00
332a98958f refactored appr model 2023-01-26 15:47:10 +01:00
Thomas Rubini
13ba0056da
Fix recipe search query 2023-01-26 13:24:43 +01:00
Thomas Rubini
00e62b7a3e
fix typo in SQL query 2023-01-25 23:12:08 +01:00
Thomas Rubini
83b3cd0bd5
fix ID variable 2023-01-25 23:12:02 +01:00
Thomas Rubini
300f11bb06
rename getRecipeByID() to getByID() 2023-01-25 23:08:09 +01:00
Thomas Rubini
fd879d4671
do not make getByName call getByID 2023-01-25 22:48:07 +01:00
Thomas Rubini
6f66a44e69
do not store difficulty as author 2023-01-25 22:40:58 +01:00
Thomas Rubini
0c406c54af
use a factory instead of exposing the constructor 2023-01-25 22:40:46 +01:00
Thomas Rubini
4e033bfe37
remove COST 2023-01-25 21:49:09 +01:00
Thomas Rubini
d2c5fbcbde
change SQL parameter to descr 2023-01-25 20:18:40 +01:00
Thomas Rubini
87252f0ed7
Revert "replace DESCR with DESC"
This reverts commit 1522018708.
2023-01-25 20:16:53 +01:00
Thomas Rubini
7baf1bdcf3
rename some methods 2023-01-25 16:46:59 +01:00
Thomas Rubini
f08f6ab102
add recipe note 2023-01-25 16:42:30 +01:00
Thomas Rubini
752796fab3
Show 3 random recipes on home page 2023-01-25 16:14:46 +01:00
Thomas Rubini
1522018708
replace DESCR with DESC 2023-01-25 15:57:52 +01:00
Thomas Rubini
9f3b566575
make functions to get links 2023-01-25 15:47:09 +01:00
Thomas Rubini
f9de8858cf
make searchRecipesByName() return Recipe objects 2023-01-25 15:45:19 +01:00
Thomas Rubini
1140dcf064
add createFromRow() 2023-01-25 15:44:41 +01:00
9633e59e5e refactored recipeModel 2023-01-25 15:37:20 +01:00
Thomas Rubini
4a4f740e69
fix update method of User model 2023-01-24 21:03:29 +01:00
Thomas Rubini
d0648e30d0
Merge pull request #71 from ThomasRubini/manage-users-view 2023-01-24 21:00:24 +01:00
Thomas Rubini
7c225f9a50
return array of User in UserModel::searchUsers() 2023-01-24 19:44:27 +01:00
Thomas Rubini
877a8c1305
add method to get user profile pic link 2023-01-24 19:44:27 +01:00
0c1da18e72
Merge pull request #74 from ThomasRubini/difficulty_model_refactor
Difficulty model refactor
2023-01-24 19:43:45 +01:00
17d20536d6 removed dangerous function call 2023-01-24 19:43:26 +01:00
0af8d23970 added static delete method 2023-01-24 19:43:26 +01:00
d3774578e7 finished difficultyModel refactor 2023-01-24 19:43:26 +01:00
8f2ff8d68a typo 2023-01-24 19:21:12 +01:00
d73ba69a07
finished userModel refactor 2023-01-24 18:57:46 +01:00
2826a2c791
userModel refactor 2023-01-24 18:50:21 +01:00
1919fb359b
started model refactor 2023-01-24 18:50:21 +01:00