Health log book#830
Conversation
Updating the repository
kaustubhgupta
left a comment
There was a problem hiding this comment.
Create a GUI application for this. The current code is not up to the mark for level 2. Also, instead of text files, use mysqlite to store details. If you don't have any experience for that then we need to decrease the level.
Thoughts? @antrikshmisri @santushtisharma10
| 1) datetime | ||
|
|
||
| ### Images of the script:- | ||
| <img src = "https://user-images.githubusercontent.com/62845847/113548479-3998f980-960d-11eb-806b-4321cec05a98.png" width = "400" height = "300"> |
There was a problem hiding this comment.
This is not the complete image of the script and therefore you can remove this image. Remove this section heading too.
| @@ -0,0 +1,46 @@ | |||
| # It is a health management system | |||
There was a problem hiding this comment.
Remove these 4 line comment and unnecessary comments from the script
Agreed. |
|
Ok sir, I will try to do all the suggested changes. As lots of changes are suggested, so it may take some time. And 1 question sir, can I use SQLite?? |
Yes |
|
@anuragmukherjee2001 updates on this? |
Yes sir, I am making the suggested changes. I will push the changes within tomorrow. |
Added the database and implemented the script with as a GUI application
Creating a database.py file for storing all the queries which will be required for our database work.
|
I updated the code. Please check it sir. |
kaustubhgupta
left a comment
There was a problem hiding this comment.
If I click on show exercise/food log without entering any information, an exception is raised:
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\Lenovo\anaconda3\lib\tkinter\__init__.py", line 1705, in __call__
return self.func(*args)
File "d:/Projects/Amazing-Python-Scripts/Health_Log_Book/main.py", line 54, in show_food
cor.execute('''SELECT * from food''')
sqlite3.OperationalError: no such table: foodHandle this case by giving popup that "No information available"
Also, on clicking show log, the information is printed in the terminal. Display that information in the application GUI only. Create a text area called results to show them
|
Ok sir, trying to correct the mistakes |
|
@anuragmukherjee2001 updates? |
I corrected the case which was giving an error. I am working on the feature of showing the information on GUI. |
|
I have made all the changes which were suggested. Please Check the PR. |
Description
The script will contain the daily records of food and workouts of a person. The user will only enter the name of the foods, it will be stored in a text file with corresponding date and time. Similarly, the user will enter the types of workout at their workout time. The workouts will be stored in a text file with date and time. The user can also retrieve the data whenever they want to see.
Modules Used:-
Fixes #823
Have you read the Contributing Guidelines on Pull Requests?
Type of change
Checklist:
README.mdTemplate for README.md