summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/charts.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/charts.rb b/lib/charts.rb
index e08b639..b608324 100644
--- a/lib/charts.rb
+++ b/lib/charts.rb
@@ -62,10 +62,6 @@ module Charts
sql = 'UNIX_TIMESTAMP(finished_at) - UNIX_TIMESTAMP(started_at) as duration'
end
result = project.builds.order(:finished_at).limit(30).pluck(sql)
- result.each do |b|
- @labels << i
- @build << project.builds.select('DATEDIFF(second, started_at, finished_at) as duration').all
- end
end
end
end