From ae1c27b45fa045da38b14b0175902abf0245d032 Mon Sep 17 00:00:00 2001 From: Florian Date: Sat, 3 Dec 2016 15:39:35 +0100 Subject: [PATCH] Update poc.py Including upper and lower boundary --- includes/decoders/poc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/decoders/poc.py b/includes/decoders/poc.py index df4e5ad..b686cf2 100644 --- a/includes/decoders/poc.py +++ b/includes/decoders/poc.py @@ -52,7 +52,7 @@ def isAllowed(poc_id): allowed = 0 # 3.) Check Range, return true if in between - if globalVars.config.getint("POC", "filter_range_start") < int(poc_id) < globalVars.config.getint("POC", "filter_range_end"): + if globalVars.config.getint("POC", "filter_range_start") <= int(poc_id) <= globalVars.config.getint("POC", "filter_range_end"): logging.info("RIC %s in between filter range", poc_id) return True else: