Skip to content

Commit 7d2e7fd

Browse files
committed
flip sign for UI
1 parent a116de7 commit 7d2e7fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

weight_predict/weight_predict.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def main():
174174
# Construct out JSON
175175
json_data = {
176176
'id': item_change.item_id,
177-
'quantity': item_change.quantity
177+
'quantity': -item_change.quantity # Note that UI expects positive = add to cart, negative = remove from cart
178178
}
179179
json_str = json.dumps(json_data) + "\n"
180180

0 commit comments

Comments
 (0)