flake8 style issue

This commit is contained in:
Christopher Neugebauer 2016-04-02 11:34:19 +11:00
parent 26af6e8672
commit bdd3714f47

View file

@ -52,9 +52,9 @@ class ProductController(object):
prod_count = prod_items.aggregate(Sum("quantity"))["quantity__sum"]
cat_count = cat_items.aggregate(Sum("quantity"))["quantity__sum"]
if prod_count == None:
if prod_count is None:
prod_count = 0
if cat_count == None:
if cat_count is None:
cat_count = 0
prod_limit = self.product.limit_per_user