From 525e8fbb9361319d6f61559f76b1ff66f4d8df03 Mon Sep 17 00:00:00 2001 From: Darko Poljak Date: Sat, 2 Apr 2016 21:18:42 +0200 Subject: [PATCH] Report project name as file path basename. --- lib/ctt/report.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ctt/report.py b/lib/ctt/report.py index 1dd2abd..d69186d 100755 --- a/lib/ctt/report.py +++ b/lib/ctt/report.py @@ -159,8 +159,9 @@ class Report(object): self.list_entries() def header(self): + project_name = os.path.basename(self.project) print("Report for %s between %s and %s" % - (self.project, self.start_date, self.end_date)) + (project_name, self.start_date, self.end_date)) @staticmethod def summary(total_time):