mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
Add a filter to exclude raw data points when calculating yearly digests.
This commit is contained in:
parent
c3ed22bb5e
commit
7313863674
1 changed files with 1 additions and 0 deletions
|
|
@ -122,6 +122,7 @@ module Users
|
||||||
end_of_year = start_of_year.end_of_year
|
end_of_year = start_of_year.end_of_year
|
||||||
|
|
||||||
user.points
|
user.points
|
||||||
|
.without_raw_data
|
||||||
.where('timestamp >= ? AND timestamp <= ?', start_of_year.to_i, end_of_year.to_i)
|
.where('timestamp >= ? AND timestamp <= ?', start_of_year.to_i, end_of_year.to_i)
|
||||||
.where.not(country_name: [nil, ''])
|
.where.not(country_name: [nil, ''])
|
||||||
.select(:country_name, :timestamp)
|
.select(:country_name, :timestamp)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue