fix: shipping cost; update UI on new order
This commit is contained in:
parent
f80a75e90c
commit
547c477ce6
11 changed files with 57 additions and 23 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue