Merge pull request #15 from darko-poljak/report-project-basename

Report project name as file path basename.
This commit is contained in:
Nico Schottelius 2016-04-03 20:34:14 +02:00
commit 53170402fd

View file

@ -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):