✅ Fix pipeline: changed gt< to gte<e and added densify for bounds (month and day test passed)
This commit is contained in:
parent
2972674903
commit
3395c36e8d
|
@ -8,8 +8,20 @@ async def aggregate_salaries(collection: AsyncIOMotorCollection, dt_from: str, d
|
|||
{
|
||||
"$match": {
|
||||
"dt": {
|
||||
"$gt": iso(dt_from),
|
||||
"$lt": iso(dt_upto)
|
||||
"$gte": iso(dt_from),
|
||||
"$lte": iso(dt_upto)
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"$densify": {
|
||||
"field": "dt",
|
||||
"range": {
|
||||
"step": 1,
|
||||
"unit": group_type,
|
||||
"bounds": [
|
||||
iso(dt_from), iso(dt_upto)
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue