mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 15:51:41 +00:00
parent
07e5baa378
commit
7e16962041
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ class StatsController < ApplicationController
|
|||
# toma de estadísticas y restando el tiempo que pasó desde ese
|
||||
# momento.
|
||||
def chart_options
|
||||
time = last_stat.created_at + 1.try(interval)
|
||||
time = (last_stat&.created_at || Time.now) + 1.try(interval)
|
||||
please_return_at = { please_return_at: distance_of_time_in_words(Time.now, time) }
|
||||
|
||||
@chart_options ||= {
|
||||
|
|
Loading…
Reference in a new issue