Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8e662a5

Browse files
authored
Changed get logs to hanndle ints correctly (#4460)
1 parent 8d9c842 commit 8e662a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/utils/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ def scan_log_limited(taskid, start, end):
601601
logger.warning("[%s] Invalid task ID provided to scan_log_limited()" % taskid)
602602
return jsonize({"success": False, "message": "Invalid task ID"})
603603

604-
if not start.isdigit() or not end.isdigit() or end < start:
604+
if not start.isdigit() or not end.isdigit() or int(end) < int(start):
605605
logger.warning("[%s] Invalid start or end value provided to scan_log_limited()" % taskid)
606606
return jsonize({"success": False, "message": "Invalid start or end value, must be digits"})
607607

0 commit comments

Comments
 (0)