Spaces:
Sleeping
Sleeping
Commit
·
5cf2175
1
Parent(s):
6cd23b5
Update pages/2_Saved_Recipes.py
Browse files- pages/2_Saved_Recipes.py +2 -2
pages/2_Saved_Recipes.py
CHANGED
@@ -28,9 +28,9 @@ st.write("") # just some space
|
|
28 |
|
29 |
recipes_filtered = [x for x in recipes if user_search.lower() in x['name'].lower()]
|
30 |
if user_sort == 'Recent':
|
31 |
-
recipes_filtered.sort(key=lambda x: x['timestamp'])
|
32 |
-
elif user_sort == 'Oldest':
|
33 |
recipes_filtered.sort(key=lambda x: x['timestamp'], reverse=True)
|
|
|
|
|
34 |
elif user_sort == 'A-Z':
|
35 |
recipes_filtered.sort(key=lambda x: x['name'])
|
36 |
elif user_sort == 'Z-A':
|
|
|
28 |
|
29 |
recipes_filtered = [x for x in recipes if user_search.lower() in x['name'].lower()]
|
30 |
if user_sort == 'Recent':
|
|
|
|
|
31 |
recipes_filtered.sort(key=lambda x: x['timestamp'], reverse=True)
|
32 |
+
elif user_sort == 'Oldest':
|
33 |
+
recipes_filtered.sort(key=lambda x: x['timestamp'])
|
34 |
elif user_sort == 'A-Z':
|
35 |
recipes_filtered.sort(key=lambda x: x['name'])
|
36 |
elif user_sort == 'Z-A':
|