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

Safe closing #35

Closed zztin closed 4 years ago

zztin commented 4 years ago

(Thanks for sending a pull request! Please fill in the following content to let us know better about this change.)

Types of changes

Please put an x in the box that applies

Description

Fix the bug when windows are halt during a clock or during break, it won't be recorded. Now it will be recorded even when the clock is ticking. The end clock time will be the time when the window is closed. A clock could last < 25 mins.

Steps to Test This Pull Request

Steps to reproduce the behavior:

  1. ctimer --debug
  2. Test a few clocks when you end during ticking, during a break, and after a break.
  3. Check ctimer.db file
  4. See if it act as expected.