From 034c0c0755ea19bb297096ae6bdbe1a7ef5a85e8 Mon Sep 17 00:00:00 2001 From: wjoe Date: Thu, 12 Apr 2012 12:10:34 +0100 Subject: Changed !count output to show the name of the event --- perc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/perc b/perc index 32ae154..9d0a3b2 100755 --- a/perc +++ b/perc @@ -45,7 +45,9 @@ # 3.62: # - Removed the weekend check for now, so it works at weekends # - +# 3.63: +# - Changed the count output to say the name of the event +# import copy import decimal import json @@ -421,7 +423,7 @@ class Output(object): seconds = seconds - (hours*60*60) minutes = int(math.floor(seconds/60)) seconds = int(seconds - (minutes*60)) - print 'Event in ' + str(days) + ' day(s), ' + str(hours) + ' hour(s), ' + str(minutes) + ' minute(s), ' + str(seconds) + ' second(s).' + print finish + ' in ' + str(days) + ' day(s), ' + str(hours) + ' hour(s), ' + str(minutes) + ' minute(s), ' + str(seconds) + ' second(s).' def output(self, type, ratio, start, finish, count): func = getattr(self, type, self.perc) -- cgit v1.2.3