mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-05 05:25:24 +02:00
Adjust queues to prioritize account syncs (#1682)
This commit is contained in:
parent
7d04ea1071
commit
3140835f28
12 changed files with 37 additions and 12 deletions
|
@ -37,6 +37,14 @@ class TimeSeries
|
|||
series: self
|
||||
end
|
||||
|
||||
def empty?
|
||||
values.empty?
|
||||
end
|
||||
|
||||
def has_current_day_value?
|
||||
values.any? { |v| v.date == Date.current }
|
||||
end
|
||||
|
||||
# `as_json` returns the data shape used by D3 charts
|
||||
def as_json
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue