From 0ee9741e20fa334a166a152656c78af682ac5506 Mon Sep 17 00:00:00 2001 From: Hope Tambala Date: Tue, 14 Apr 2020 23:13:26 -0400 Subject: [PATCH] fix: change string upc code to integer --- db/pineapplestore.db | Bin 57344 -> 57344 bytes endpoints/cart.py | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/db/pineapplestore.db b/db/pineapplestore.db index 5890cf3a0ad987f8e7be2e0ad4a9c5c488663c51..1479192d9aac8170e36e1ca355fbe57ded5c641e 100644 GIT binary patch delta 94 zcmZoTz}#?vd4e>f;6xc`M!}5^Bw7jggq delta 32 lcmZoTz}#?vd4e<}_e2?IM(&LXOX3%^1PFleW|oFO@c^%(3hn>^ diff --git a/endpoints/cart.py b/endpoints/cart.py index cc8b7b9..f553724 100644 --- a/endpoints/cart.py +++ b/endpoints/cart.py @@ -17,7 +17,7 @@ def post(self, userid): parser = reqparse.RequestParser() parser.add_argument('product_upc', - type=str, + type=int, required=True, help='This field is mandatory!') parser.add_argument('quantity',