fix: add orders to direct_messages table

This commit is contained in:
Vlad Stan 2023-03-24 16:55:23 +02:00
parent b0890b8ebb
commit c583af3c33
2 changed files with 11 additions and 11 deletions

View file

@ -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