예제 #1
0
파일: basic.py 프로젝트: pnw/jiggl
def print_valid_entries(entries):
    print bcolors.header(bcolors.underline("\nLogging to Jira\n"))

    # entries = map(get_val, entries)

    groups = z.groupby(z.get("description", default=""), entries)
    cleaned = map(split_description, groups.iteritems())

    for (issue, comment), es in cleaned:
        print (bcolors.bold("%-8s") + " %s") % (sum_as_timedelta(es), bcolors.okblue(issue) + " " + comment)
예제 #2
0
def print_valid_entries(entries):
    print bcolors.header(bcolors.underline('\nLogging to Jira\n'))

    # entries = map(get_val, entries)

    groups = z.groupby(z.get('description', default=''), entries)
    cleaned = map(split_description, groups.iteritems())

    for (issue, comment), es in cleaned:
        print(bcolors.bold('%-8s') + ' %s') % (
            sum_as_timedelta(es), bcolors.okblue(issue) + ' ' + comment)
예제 #3
0
def print_total_for_day(entries):
    print '-------'
    print(bcolors.bold('%-8s') +
          ' Total Time to log for day') % (sum_as_timedelta(entries))
예제 #4
0
파일: basic.py 프로젝트: pnw/jiggl
def print_total_for_day(entries):
    print "-------"
    print (bcolors.bold("%-8s") + " Total Time to log for day") % (sum_as_timedelta(entries))