Skip to content

Commit 748ffe4

Browse files
committed
Update pql builder to drop milisenconds to avoid flaky tests
1 parent cf03239 commit 748ffe4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cli/polyaxon/_pql/builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def _get_operator(cls, op: str, negation: bool = False) -> Optional[Callable]:
285285
def _eq_operator(name: str, params: Any, query_backend: Any, timezone: str) -> Any:
286286
# Special handling for constant last_month
287287
if params == "last_month":
288-
params_value = get_datetime_from_now(days=30)
288+
params_value = get_datetime_from_now(days=30).replace(microsecond=0)
289289
filters = {
290290
f"{name}__gte": params_value,
291291
}

0 commit comments

Comments
 (0)