diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | lib/charts.rb | 4 |
2 files changed, 1 insertions, 4 deletions
@@ -12,3 +12,4 @@ tmp/* .rvmrc coverage/* .ruby-version +/vendor
\ No newline at end of file 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 |