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()
else:
projects=[args.projects[0]]
projects=[args.project[0]]
total_time = 0
for project in projects:
@ -148,7 +148,6 @@ class Report(object):
def report(self):
self.header()
self.list_entries()
self.summary(self.total_time)
def header(self):
print("Report for %s between %s and %s" %