Organizing the Quick Tip for Mental Health tips in separate file #85
Replies: 2 comments 5 replies
-
@Amna-Hassan04 What I am thinking is a separate json file for keeping those tips. When the user clicks the get tip button, a random tip is generated from the json file and displays it. Another approach is creating a SQLite Db for it and store the tips in it. What do you think? If you are suggesting this approach, please do tell so i can work on it. |
Beta Was this translation helpful? Give feedback.
-
@Amna-Hassan04 I have completed integrating MongoDb with the Quick Tips for Mental Health Section The video file: m2.webm |
Beta Was this translation helpful? Give feedback.
-
Hi there! i want to propose a new additional file for organizing the tips in separate json file in Quick Tips for Mental Health section where the user gets random tips on Get Tips button. Initially i thought of discussing it for Personalized Tips Section but that issue was already taken.
The json file will look like this:
Advantages:
---> Reducing the excess code in the main file.
-->Makes the code look clean.
-->Easy updation of tips without wasting time scrolling through the app.py file.
If you are ok with it i would like to work on this.
Thank You
-Suhaib
Beta Was this translation helpful? Give feedback.
All reactions