diff --git a/PatrowlEnginesUtils/PatrowlEngine.py b/PatrowlEnginesUtils/PatrowlEngine.py index 12e76a9..4ba63cb 100644 --- a/PatrowlEnginesUtils/PatrowlEngine.py +++ b/PatrowlEnginesUtils/PatrowlEngine.py @@ -268,7 +268,7 @@ def _engine_is_busy(self): # TODO rewrite function later if self.scans[scan_id]["status"] in ["SCANNING", "STARTED"]: scans_count += 1 - if scans_count >= APP_MAXSCANS: + if scans_count >= self.max_scans: return True return False diff --git a/PatrowlEnginesUtils/__init__.py b/PatrowlEnginesUtils/__init__.py index 128f993..e2688b6 100644 --- a/PatrowlEnginesUtils/__init__.py +++ b/PatrowlEnginesUtils/__init__.py @@ -3,7 +3,7 @@ __title__ = 'patrowl_engine_utils' -__version__ = '1.2.0' +__version__ = '1.2.1' __author__ = 'Nicolas MATTIOCCO' __license__ = 'AGPLv3' __copyright__ = 'Copyright (C) 2018-2021 Nicolas Mattiocco - @MaKyOtOx' diff --git a/VERSION b/VERSION index 26aaba0..6085e94 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.2.0 +1.2.1 diff --git a/setup.py b/setup.py index a398ec5..37afd76 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ setup( name='PatrowlEnginesUtils', - version='1.2.0', + version='1.2.1', description='Common classes for PatrowlEngines', url='https://github.com/Patrowl/PatrowlEnginesUtils', author='Nicolas Mattiocco',