diff --git a/work.py b/work.py index b7250fab5f..16e6902caa 100644 --- a/work.py +++ b/work.py @@ -159,6 +159,12 @@ class Work(ModelSQL, ModelView): 'child': child.rec_name, }) + @property + def effort_hours(self): + if not self.effort_duration: + return 0 + return self.effort_duration.total_seconds() / 60 / 60 + def get_rec_name(self, name): return self.work.name