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)
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)
def print_total_for_day(entries): print '-------' print(bcolors.bold('%-8s') + ' Total Time to log for day') % (sum_as_timedelta(entries))
def print_total_for_day(entries): print "-------" print (bcolors.bold("%-8s") + " Total Time to log for day") % (sum_as_timedelta(entries))