Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
beat.web
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
54
Issues
54
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
beat
beat.web
Commits
caf71f9f
Commit
caf71f9f
authored
Apr 24, 2016
by
André Anjos
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[backend] Updates statistics
parent
6f77e1cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
beat/web/backend/models.py
beat/web/backend/models.py
+3
-1
No files found.
beat/web/backend/models.py
View file @
caf71f9f
...
...
@@ -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
(),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment