fix: add orders to direct_messages table
This commit is contained in:
parent
b0890b8ebb
commit
c583af3c33
2 changed files with 11 additions and 11 deletions
|
|
@ -78,7 +78,7 @@ def order_from_json(s: str) -> Tuple[Optional[Any], Optional[str]]:
|
|||
try:
|
||||
order = json.loads(s)
|
||||
return (
|
||||
(order, None) if (type(order) is dict) and "items" in order else (None, s)
|
||||
(order, s) if (type(order) is dict) and "items" in order else (None, s)
|
||||
)
|
||||
except ValueError:
|
||||
return None, s
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue