Skip to content

Commit

Permalink
Ajustement fonction stable
Browse files Browse the repository at this point in the history
  • Loading branch information
julienmalard committed Nov 20, 2023
1 parent fe8d766 commit c163f20
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion constellationPy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import inspect
import json
import logging
from typing import Any, TypedDict, Callable, Coroutine, Awaitable, Optional
from typing import TYPE_CHECKING

Expand Down Expand Up @@ -84,7 +85,8 @@ def attendre_stabilité(n: int | float) -> Callable[[Any], Awaitable[bool]]:

précédente = {}
async def stable(val: Any):
chaîne_val = json.dumps(val)
chaîne_val = json.dumps(val, ensure_ascii=False)

if "val" in précédente and chaîne_val == précédente["val"]:
return False

Expand Down

0 comments on commit c163f20

Please sign in to comment.