minor formatting

This commit is contained in:
Josh Holtrop 2011-03-19 18:12:51 -04:00
parent ed6aeb02a2
commit e11ee5a930

View File

@ -8,7 +8,8 @@ class Window:
self.ds = ds
self.shown_projects = []
self.taskStart = datetime.now()
self.monday = self.taskStart.date() - timedelta(self.taskStart.weekday())
self.monday = \
self.taskStart.date() - timedelta(self.taskStart.weekday())
# Top-level Window creation
self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
@ -139,7 +140,7 @@ class Window:
self.projects_table.set_row_spacings(3)
row += 1
# Add Tasks information of we have a current project
# Add Tasks information if we have a current project
if self.currProject > 0:
l = gtk.Label()
l.set_markup('<b>Tasks</b>')
@ -219,7 +220,8 @@ class Window:
if self.currProject in day_hours:
for t in day_hours[self.currProject]:
if t in self.task_hour_labels:
hrs = self.hoursFromSeconds(day_hours[self.currProject][t])
hrs = self.hoursFromSeconds(
day_hours[self.currProject][t])
if not t in totals:
totals[t] = 0
totals[t] += float(hrs)