Commit graph

37 commits

Author SHA1 Message Date
Darko Poljak
8ed104616a Ignore non matching patterns for report command.
Non matching datetime pattern directory entries are skipped.
2017-02-15 11:12:51 +01:00
Darko Poljak
f1fea6add6 Fix sorting of time entries. 2016-05-24 08:49:02 +02:00
Darko Poljak
cd8d3b06fd Fix copy paste errors in comments. 2016-04-11 17:19:53 +02:00
Darko Poljak
dda4ff807d Add remaining tests. Merge bugfix for report printing. 2016-04-11 17:16:33 +02:00
Darko Poljak
a7dbe383e4 Merge branch 'bugfix-multiple_rows' into test-intro 2016-04-11 17:15:35 +02:00
Darko Poljak
f72db34875 Bugfix: report prints multiple rows. 2016-04-11 17:08:54 +02:00
Darko Poljak
6245a3c015 Introduce unit tests (init, main, listprojects, tracker). 2016-04-10 21:01:54 +02:00
Darko Poljak
f5123d3328 Code improvements. 2016-04-07 22:22:56 +02:00
Darko Poljak
4663003b69 Remove unnecessary code. 2016-04-07 18:26:34 +02:00
Darko Poljak
3ea214783c Add summary option. 2016-04-07 12:32:39 +02:00
Darko Poljak
525e8fbb93 Report project name as file path basename. 2016-04-02 21:18:42 +02:00
Darko Poljak
ff1ccba2fa Add report project name globbing. 2016-03-25 08:47:06 +01:00
Nico Schottelius
bf0e47cef8 fix listprojects
Signed-off-by: Nico Schottelius <nico@freiheit.schottelius.org>
2015-04-12 01:04:38 +09:00
Nico Schottelius
d0cf603675 catch invalid time entries
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2014-07-01 17:56:20 +02:00
oz123
654153eb9c fix for crash in listprojects
[36] ozn@deboz:~/software/ctt  [master]  $ ctt listprojects
Traceback (most recent call last):
  File "/usr/local/bin/ctt", line 5, in <module>
    pkg_resources.run_script('ctt==0.9', 'ctt')
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 507, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 1273, in run_script
    exec(compile(open(script_filename).read(), script_filename, 'exec'), namespace, namespace)
  File "/usr/local/lib/python3.3/dist-packages/ctt-0.9-py3.3.egg/EGG-INFO/scripts/ctt", line 119, in <module>
    parse_argv(sys.argv[1:], ctt.VERSION)
  File "/usr/local/lib/python3.3/dist-packages/ctt-0.9-py3.3.egg/EGG-INFO/scripts/ctt", line 95, in parse_argv
    args.func(args)
  File "/usr/local/lib/python3.3/dist-packages/ctt-0.9-py3.3.egg/lib/ctt/listprojects.py", line 33, in commandline
    cls.print_projects()
TypeError: print_projects() takes 0 positional arguments but 1 was given
2013-08-30 10:06:49 +02:00
oz123
0d27fb60cb add author information to __init__.py 2013-08-29 13:48:02 +02:00
Nico Schottelius
2ac0d937b1 list times for all projects
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-21 12:11:46 +02:00
Nico Schottelius
2de8525bab use project and report summary only once
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-07-24 18:56:56 +02:00
Nico Schottelius
29fbda012f initial support for listing tracked time for all projects
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-07-24 16:35:47 +02:00
Nico Schottelius
dbcecf9970 use a dict to have keyword access
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-04-29 16:38:21 +02:00
Nico Schottelius
ab362be637 support -e/-i & changelog entry
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-04-27 22:55:02 +02:00
Nico Schottelius
5003b935f4 remove obsolte report parts
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-04-04 23:23:40 +02:00
Nico Schottelius
13373c4f60 support varying output modifiers for report
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-04-04 00:05:41 +02:00
Nico Schottelius
875aeb4f03 begin to do more clever default date selection
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-12-03 18:11:29 +01:00
Nico Schottelius
9b943ebd3d add support for listprojects
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-27 13:05:18 +01:00
Nico Schottelius
92c51d9dc0 update version string
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-01 10:39:32 +01:00
Nico Schottelius
376d2d6079 sort entries on report
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-10-31 22:19:33 +01:00
Nico Schottelius
a791bae133 default to add a comment, not to skip
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-10-31 18:10:33 +01:00
Nico Schottelius
e642b525d9 support report with entry listing
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-10-14 16:15:59 +02:00
Nico Schottelius
f990b0158d cleanup report/tracker, ensure end day ends at 23:59:59
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-08-29 12:20:45 +02:00
Nico Schottelius
6d827c1dcc Add support for comments (after tracking)
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-08-28 17:23:24 +02:00
Nico Schottelius
58a8924811 change disk format and add conversion utility
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-08-28 14:03:58 +02:00
Nico Schottelius
be36db753d can specifiy start and end datetimes for tracking
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-08-27 18:37:03 +02:00
Nico Schottelius
1f482cf3f2 reporting tracked time works
[17:37] brief:ctt% ./bin/ctt report -s 2012-01-01 -e 2012-12-31  test
Tracked time between 2012-01-01 00:00:00 and 2012-12-31 00:00:00: 0h 0m
10.654657s.
[17:37] brief:ctt% ./bin/ctt report -s 2012-01-01 -e 2012-12-31  localch
Tracked time between 2012-01-01 00:00:00 and 2012-12-31 00:00:00: 16h
32m 38.84267699999327s.

Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-08-27 17:37:56 +02:00
Nico Schottelius
1681870473 begin manpage, begin integration of start/end tracking
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-08-27 17:14:54 +02:00
Nico Schottelius
cd733c73a8 finish reporting
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-08-27 16:58:18 +02:00
Nico Schottelius
082c316f3c split off ctt into lib
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-08-24 16:54:32 +02:00