Commit f60330d1 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Restore the duration computation.

parent 834beadc
......@@ -214,7 +214,7 @@ class MySelector(SelectorActiveItems):
row (gluon.dal.Row): row of the history table.
Returns:
datetime.timedelta:
float: in seconds
"""
value = timedelta(seconds=0)
......@@ -232,7 +232,7 @@ class MySelector(SelectorActiveItems):
elif start and end and end < now:
value = end - start
return value
return value.total_seconds()
def _fte(self, row):
"""Compute the full time equivalent of the person associated
......
......@@ -2,7 +2,7 @@
* Convert a duration in nanosecond into a string.
*
* @param {Number} value
* The duration in nanoseconds
* The duration in seconds
*
* @return {String}
* The duration express as the number of year + the number of months e.g. "3y + 09m"
......@@ -12,7 +12,7 @@ function reprDuration(value) {
"use strict";
var duration = value / 1.E9,
var duration = value,
month,
nd,
nm,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment