chenjunkai 6 년 전
부모
커밋
3b30a19d53
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      Controller/MealManage.py

+ 2 - 1
Controller/MealManage.py

@@ -147,7 +147,8 @@ class MealManage(View):
                         store_meal.price = price
                         store_meal.content = content
                         store_meal.day = day
-                        store_meal.bucket_id = bucketID
+                        if bucketID:
+                            store_meal.bucket_id = bucketID
                         if currency:
                             store_meal.currency = currency
                         store_meal.save()