diff options
Diffstat (limited to 'app/api/responders/resource/clique_constraints.py')
-rw-r--r-- | app/api/responders/resource/clique_constraints.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/app/api/responders/resource/clique_constraints.py b/app/api/responders/resource/clique_constraints.py index 09fa782..1761f8c 100644 --- a/app/api/responders/resource/clique_constraints.py +++ b/app/api/responders/resource/clique_constraints.py @@ -13,13 +13,12 @@ from bson.objectid import ObjectId class CliqueConstraints(ResponderBase): - def __init__(self): - super().__init__() - self.ID = '_id' - self.PROJECTION = { - self.ID: True - } - self.COLLECTION = 'clique_constraints' + + COLLECTION = 'clique_constraints' + ID = '_id' + PROJECTION = { + ID: True + } def on_get(self, req, resp): self.log.debug("Getting clique_constraints") |