Skip to content

Commit

Permalink
Merge pull request #1355 from jasquat/fix-sparklines-24-hour-graph
Browse files Browse the repository at this point in the history
fixed sparklines 24 hour graph. w/ burnettk
  • Loading branch information
rud committed Aug 7, 2018
2 parents 74659c4 + 9533b5d commit a000869
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/problems/_sparkline.html.haml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
= now = Time.current
%tr
- two_week_percentages = problem.grouped_notice_count_relative_percentages((now - 13.days).at_beginning_of_day)
- twenty_four_hour_percentages = problem.grouped_notice_count_relative_percentages((now - 23.hours).at_beginning_of_hour)
- two_week_percentages = problem.grouped_notice_count_relative_percentages((now - 13.days).at_beginning_of_day, 'day')
- twenty_four_hour_percentages = problem.grouped_notice_count_relative_percentages((now - 23.hours).at_beginning_of_hour, 'hour')
%th= t('.graph-2-weeks')
%td= Sparklines.for_relative_percentages(two_week_percentages)
%tr
Expand Down

0 comments on commit a000869

Please sign in to comment.