timelog

GTimeLog compatible command line tools
git clone https://git.ce9e.org/timelog.git

commit
ddc709f02f314f02baded05f05faf4f14e160602
parent
50e124afbbe8867bd29605747826ab2a449d1cd6
Author
Tobias Bengfort <tobias.bengfort@gmx.net>
Date
2014-01-28 00:33
fix include first or last entry in query

Diffstat

M timelog_view.py 3 +++

1 files changed, 3 insertions, 0 deletions


diff --git a/timelog_view.py b/timelog_view.py

@@ -111,6 +111,9 @@ class Query:
  111   111 		def get(i):
  112   112 			return self.timelog[self.data[i]]['dt']
  113   113 
   -1   114 		if (after and get(low) > dt) or (not after and get(high) < dt):
   -1   115 			return
   -1   116 
  114   117 		while high - low > 1:
  115   118 			new = int((low + high) / 2)
  116   119 			if get(new) <= dt: