use project and report summary only once

Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
Nico Schottelius 2013-07-24 18:56:56 +02:00
parent 29fbda012f
commit 2de8525bab

View file

@ -63,7 +63,7 @@ class Report(object):
projects=ctt.listprojects.ListProjects.list_projects() projects=ctt.listprojects.ListProjects.list_projects()
else: else:
projects=[args.projects[0]] projects=[args.project[0]]
total_time = 0 total_time = 0
for project in projects: for project in projects:
@ -148,7 +148,6 @@ class Report(object):
def report(self): def report(self):
self.header() self.header()
self.list_entries() self.list_entries()
self.summary(self.total_time)
def header(self): def header(self):
print("Report for %s between %s and %s" % print("Report for %s between %s and %s" %