diff options
Diffstat (limited to 'app/api/responders/resource/scans.py')
-rw-r--r-- | app/api/responders/resource/scans.py | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/app/api/responders/resource/scans.py b/app/api/responders/resource/scans.py index 6fc572d..30b8dd6 100644 --- a/app/api/responders/resource/scans.py +++ b/app/api/responders/resource/scans.py @@ -14,15 +14,14 @@ from datetime import datetime class Scans(ResponderBase): - def __init__(self): - super().__init__() - self.COLLECTION = "scans" - self.ID = "_id" - self.PROJECTION = { - self.ID: True, - "environment": True, - "status": True - } + + COLLECTION = "scans" + ID = "_id" + PROJECTION = { + ID: True, + "environment": True, + "status": True + } def on_get(self, req, resp): self.log.debug("Getting scans") |