Commit caf71f9f authored by André Anjos's avatar André Anjos 💬

[backend] Updates statistics

parent 6f77e1cc
......@@ -47,6 +47,7 @@ import beat.core.data
from ..common.models import Shareable, ShareableManager
from ..common.texts import Messages
from ..statistics.utils import updateStatistics
#----------------------------------------------------------
......@@ -713,7 +714,8 @@ class Job(models.Model):
diff_timings = self._merge_results()
self.end_date = self.splits.order_by('-end_date').\
first().end_date
Result.objects.filter(splits__in=self.splits.all()).delete()
updateStatistics(self.result.stats, self.end_date)
Result.objects.filter(split__in=self.splits.all()).delete()
seqtime = sum(diff_timings)
timings = dict(
queuing = (self.start_date - self.runnable_date).total_seconds(),
......
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