Skip to content

Commit

Permalink
Fix dates
Browse files Browse the repository at this point in the history
  • Loading branch information
petya-vasileva committed Nov 17, 2023
1 parent 5f00424 commit 2596894
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/model/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,9 @@ def queryPathChanged(dateFrom, dateTo):
"must": [{
"range": {
"created_at": {
"from": period[0],
"to": period[1]
"from": dateFrom,
"to": dateTo,
"format": "strict_date_optional_time"
}
}
}]
Expand Down Expand Up @@ -184,7 +185,8 @@ def queryAlarms(dateFrom, dateTo):
"range": {
"created_at": {
"from": period[0],
"to": period[1]
"to": period[1],
"format": "epoch_millis"
}
}
},
Expand Down

0 comments on commit 2596894

Please sign in to comment.