From 8e662a5179ad1c103ca56318575e5b97da1f5079 Mon Sep 17 00:00:00 2001 From: tomjshore Date: Fri, 4 Dec 2020 10:47:09 +0000 Subject: [PATCH] Changed get logs to hanndle ints correctly (#4460) --- lib/utils/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/api.py b/lib/utils/api.py index bd6191272..fc22d9e52 100644 --- a/lib/utils/api.py +++ b/lib/utils/api.py @@ -601,7 +601,7 @@ def scan_log_limited(taskid, start, end): logger.warning("[%s] Invalid task ID provided to scan_log_limited()" % taskid) return jsonize({"success": False, "message": "Invalid task ID"}) - if not start.isdigit() or not end.isdigit() or end < start: + if not start.isdigit() or not end.isdigit() or int(end) < int(start): logger.warning("[%s] Invalid start or end value provided to scan_log_limited()" % taskid) return jsonize({"success": False, "message": "Invalid start or end value, must be digits"})