Merge pull request #15 from darko-poljak/report-project-basename
Report project name as file path basename.
This commit is contained in:
commit
53170402fd
1 changed files with 2 additions and 1 deletions
|
@ -159,8 +159,9 @@ class Report(object):
|
||||||
self.list_entries()
|
self.list_entries()
|
||||||
|
|
||||||
def header(self):
|
def header(self):
|
||||||
|
project_name = os.path.basename(self.project)
|
||||||
print("Report for %s between %s and %s" %
|
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
|
@staticmethod
|
||||||
def summary(total_time):
|
def summary(total_time):
|
||||||
|
|
Loading…
Reference in a new issue