Remove unnecessary code.
This commit is contained in:
parent
3ea214783c
commit
4663003b69
1 changed files with 3 additions and 7 deletions
|
@ -192,7 +192,7 @@ class Report(object):
|
||||||
log.debug("Skipping: %s" % dirname)
|
log.debug("Skipping: %s" % dirname)
|
||||||
|
|
||||||
def report(self, summary=False):
|
def report(self, summary=False):
|
||||||
return self.list_entries(summary)
|
return self.list_entries()
|
||||||
|
|
||||||
def header(self):
|
def header(self):
|
||||||
project_name = os.path.basename(self.project)
|
project_name = os.path.basename(self.project)
|
||||||
|
@ -239,15 +239,11 @@ class Report(object):
|
||||||
return report
|
return report
|
||||||
|
|
||||||
|
|
||||||
def list_entries(self, summary=False):
|
def list_entries(self):
|
||||||
"""Return total time tracked"""
|
"""Return total time tracked"""
|
||||||
|
|
||||||
entries = {}
|
entries = {}
|
||||||
if summary:
|
time_keys = self._report_db.keys()
|
||||||
time_keys = self._report_db.keys()
|
|
||||||
else:
|
|
||||||
time_keys = sorted(self._report_db.keys())
|
|
||||||
|
|
||||||
for time in time_keys:
|
for time in time_keys:
|
||||||
entry = self._report_db[time]
|
entry = self._report_db[time]
|
||||||
report = self._get_report_entry(time, entry)
|
report = self._get_report_entry(time, entry)
|
||||||
|
|
Loading…
Reference in a new issue