FIX: makes start/end date inclusives

This commit is contained in:
Joffrey JAFFEUX 2019-10-18 12:02:20 +02:00
parent b06ca4e2aa
commit fe5a9058fe
1 changed files with 2 additions and 3 deletions

View File

@ -296,10 +296,9 @@ after_initialize do
]
values = []
values = PluginStoreRow.where(plugin_name: 'user_notes')
.where("value::json->0->>'created_at'>?", report.start_date)
.where("value::json->0->>'created_at'<?", report.end_date)
.where("value::json->0->>'created_at'>=?", report.start_date)
.where("value::json->0->>'created_at'<=?", report.end_date)
.pluck(:value)
values.each do |value|