zztin / ctimer

This is a python implementation of a famous time management technique. CTimer helps you keep track of your productivity during the day, and help you set realistic goals for your day.
Apache License 2.0
0 stars 1 forks source link

Draft database for storing goals and descriptions. Bugs in subwindow launching. #12 #15

Closed zztin closed 4 years ago

zztin commented 4 years ago

Types of changes

Please put an x in the box that applies

Description

Describe what the change is Record the goals and review into local database.

Steps to Test This Pull Request

Steps to reproduce the behavior:

  1. type ctimer to command line to initiate ctimer
  2. enter a goal for the clock.
  3. Start a clock
  4. when a clock ends, click if you finish your goal and enter reasons for why you did or did not finish the goal. (currently the clock is set to very short for testing)
  5. Use commandline sqlite to check the recorded entries of the clock.

Expected behavior

The info is stored in the ctimer.db in the data folder.

Current Issue NOT Solved

Now the subwindow to allow entering the reasons does not halt the main window. therefore the break could start and finish before the reason is entered. When this happens, the reasons are not recorded in the database.

Related issue

Address #12 feature request

tai271828 commented 4 years ago

I am able to reproduce this issue with python 3.8.3. At this moment I am looking into the issue.

zztin commented 4 years ago

In this draft, the db_file path is fixed to a fixed path. (Previously it was relative path which causes writing errors when launching ctimer at different directory.) The issue with the subwindow launching will be solve in next pull request mbox_fix

zztin commented 4 years ago

This is a legacy. Features requests and bugs are addressed in another pull request. Deprecate this pull request.