summaryrefslogtreecommitdiffstats
path: root/app/api/responders/resource/scheduled_scans.py
diff options
context:
space:
mode:
authorKoren Lev <korenlev@gmail.com>2017-10-15 01:38:44 +0300
committerKoren Lev <korenlev@gmail.com>2017-10-15 01:38:44 +0300
commit41ac4c4e9a6112d8c98472a1be60e4869814f549 (patch)
treefc5522f9a7889210e3f1484a530f789c98f36880 /app/api/responders/resource/scheduled_scans.py
parent9ead0bf1e054c1af34d9d2c02b5d8bd82f87e3ba (diff)
added schemes to support new ui link options + fix api per new schemes
Change-Id: I768233f13749d01d436c24c764cb903ca19d3d2a Signed-off-by: Koren Lev <korenlev@gmail.com>
Diffstat (limited to 'app/api/responders/resource/scheduled_scans.py')
-rw-r--r--app/api/responders/resource/scheduled_scans.py33
1 files changed, 16 insertions, 17 deletions
diff --git a/app/api/responders/resource/scheduled_scans.py b/app/api/responders/resource/scheduled_scans.py
index f8cf92c..e9d6a34 100644
--- a/app/api/responders/resource/scheduled_scans.py
+++ b/app/api/responders/resource/scheduled_scans.py
@@ -14,23 +14,22 @@ from datetime import datetime
class ScheduledScans(ResponderBase):
- def __init__(self):
- super().__init__()
- self.COLLECTION = "scheduled_scans"
- self.ID = "_id"
- self.PROJECTION = {
- self.ID: True,
- "environment": True,
- "scheduled_timestamp": True,
- "freq": True
- }
- self.SCAN_FREQ = [
- "YEARLY",
- "MONTHLY",
- "WEEKLY",
- "DAILY",
- "HOURLY"
- ]
+
+ COLLECTION = "scheduled_scans"
+ ID = "_id"
+ PROJECTION = {
+ ID: True,
+ "environment": True,
+ "scheduled_timestamp": True,
+ "freq": True
+ }
+ SCAN_FREQ = [
+ "YEARLY",
+ "MONTHLY",
+ "WEEKLY",
+ "DAILY",
+ "HOURLY"
+ ]
def on_get(self, req, resp):
self.log.debug("Getting scheduled scans")