diff options
author | 2017-10-24 13:35:42 +0300 | |
---|---|---|
committer | 2017-10-24 13:35:42 +0300 | |
commit | 7cba26258ea17f790028a7005cb9bbbdc3923389 (patch) | |
tree | 603f9b7bd2fa6226f99fde9bfa1526f172fef154 /app/discover/scan_manager.py | |
parent | e2240ef940939a6c0cc30ca6370aae0d42c5a4af (diff) |
several bug fixes for release 1.1
Change-Id: I433d41245107a68959efdcd6b56ce3348c7bbeb5
Signed-off-by: Koren Lev <korenlev@gmail.com>
Diffstat (limited to 'app/discover/scan_manager.py')
-rw-r--r-- | app/discover/scan_manager.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/app/discover/scan_manager.py b/app/discover/scan_manager.py index 12dbec0..6c46d47 100644 --- a/app/discover/scan_manager.py +++ b/app/discover/scan_manager.py @@ -170,14 +170,6 @@ class ScanManager(Manager): .update_many(filter={'name': {'$in': env_scans}}, update={'$set': {'scanned': False}}) - INTERVALS = { - 'YEARLY': datetime.timedelta(days=365.25), - 'MONTHLY': datetime.timedelta(days=365.25/12), - 'WEEKLY': datetime.timedelta(weeks=1), - 'DAILY': datetime.timedelta(days=1), - 'HOURLY': datetime.timedelta(hours=1) - } - def _submit_scan_request_for_schedule(self, scheduled_scan, interval, ts): scans = self.scans_collection new_scan = { |