From bdd3714f4751e4ab57615a6f9b84308157d1101b Mon Sep 17 00:00:00 2001 From: Christopher Neugebauer Date: Sat, 2 Apr 2016 11:34:19 +1100 Subject: [PATCH] flake8 style issue --- registrasion/controllers/product.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/registrasion/controllers/product.py b/registrasion/controllers/product.py index 235031e8..caeb0d54 100644 --- a/registrasion/controllers/product.py +++ b/registrasion/controllers/product.py @@ -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