fix: shipping cost; update UI on new order

This commit is contained in:
Vlad Stan 2023-04-03 11:57:55 +03:00
parent 64316f97ee
commit a65017d04e
11 changed files with 57 additions and 23 deletions

View file

@ -77,8 +77,6 @@ def copy_x(output, x32, y32, data):
def order_from_json(s: str) -> Tuple[Optional[Any], Optional[str]]:
try:
order = json.loads(s)
return (
(order, s) if (type(order) is dict) and "items" in order else (None, s)
)
return (order, s) if (type(order) is dict) and "items" in order else (None, s)
except ValueError:
return None, s