chanjunkai 5 years ago
parent
commit
e0b7b13c2f
1 changed files with 2 additions and 2 deletions
  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")