diff --git a/registrasion/controllers/category.py b/registrasion/controllers/category.py index 9ab9dd3be9bb44b2f3ca36eed272cda12db4cc46..04f502db1ff67d9e1eeec98c4aa04048a3fb7575 100644 --- a/registrasion/controllers/category.py +++ b/registrasion/controllers/category.py @@ -53,4 +53,4 @@ class CategoryController(object): ) cat_count = items.aggregate(Sum("quantity"))["quantity__sum"] or 0 - cat_limit - cat_count + return cat_limit - cat_count