From e2f2060cbb7d14aeb1aff7fbca1408fe54aedbb1 Mon Sep 17 00:00:00 2001 From: Koren Lev Date: Sun, 15 Oct 2017 01:38:44 +0300 Subject: added schemes to support new ui link options + fix api per new schemes Change-Id: I768233f13749d01d436c24c764cb903ca19d3d2a Signed-off-by: Koren Lev (cherry picked from commit 41ac4c4e9a6112d8c98472a1be60e4869814f549) --- app/api/responders/resource/clique_constraints.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'app/api/responders/resource/clique_constraints.py') 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") -- cgit 1.2.3-korg