chanjunkai 5 年之前
父節點
當前提交
e0b7b13c2f
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Controller/CloudStorage.py

+ 2 - 2
Controller/CloudStorage.py

@@ -102,14 +102,14 @@ class CloudStorageView(View):
                 return response.json(414)
 
     def do_commodity_list(self, request_dict, userID, response):
-        mold = request_dict.get('request_dict', None)
+        mold = request_dict.get('mold', None)
         if mold:
             qs = Store_Meal.objects.filter(bucket__mold=1). \
                 values("id", "title", "content", "price", "day",
                        "currency","bucket__storeDay", "bucket__bucket",
                        "bucket__area", "type")
         else:
-            qs = Store_Meal.objects.all(). \
+            qs = Store_Meal.objects.filter(bucket__mold=0). \
                 values("id", "title", "content", "price", "day",
                        "currency", "bucket__storeDay", "bucket__bucket",
                        "bucket__area", "type")