We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a116de7 commit 7d2e7fdCopy full SHA for 7d2e7fd
weight_predict/weight_predict.py
@@ -174,7 +174,7 @@ def main():
174
# Construct out JSON
175
json_data = {
176
'id': item_change.item_id,
177
- 'quantity': item_change.quantity
+ 'quantity': -item_change.quantity # Note that UI expects positive = add to cart, negative = remove from cart
178
}
179
json_str = json.dumps(json_data) + "\n"
180
0 commit comments