chanjunkai 5 rokov pred
rodič
commit
e0b7b13c2f
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  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")