Reformatted timestamps on log entries and force focus on log text window. #112
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have implemented two improvements in this pull request. First, I added cleaner formatting for the timestamps in the user log. Dates now appear like "July 6, 2018 at 8:29AM" instead of the hard to read raw datetime object. This will allow users to more easily navigate their log. Secondly, I added one line of code that forces the cursor to move to the log window when the user wants to create an entry, so that the user doesn't have to click into the window. This improvement will allow for a more seamless user experience.
I moved a lot of stuff around and refactored a lot of the classes and functions in the project. I restructured the project into a more pythonic package structure, with a main.py file so the project can be run using "python -m prog-o-meter". Lastly, I implemented a means of user data storage that is much cleaner by using json in one single users.json file, rather than creating individual text files for each user. This way, the program will store users.json in the project directory, rather than the current directory.
Please let me know if there is anything in my code that does not comply with the project contribution guidelines!
If this is your first pull request to the prog-o-meter project, we would really appreciate it if you would fill out this Google form.
This lets us know more about our contributors, and what we can do to make it easier and nicer to contribute to the prog-o-meter project.
Please submit your answer here and put an 'x' in the box below.