From f0010a5962d4d5c222f152be8b03873c54f5da10 Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Tue, 14 Mar 2017 23:10:31 -0500 Subject: [PATCH] Update grader.py --- qrt/grader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qrt/grader.py b/qrt/grader.py index 0ff92c3..90c0ec2 100644 --- a/qrt/grader.py +++ b/qrt/grader.py @@ -37,7 +37,7 @@ def getspace(size): def generate_image(string, debug=False): size = 0 binstring = bin(int(string.encode("hex"), 16)).strip("0b") - while size < 2 or getspace(size + 1) < len(binstring): + while size < 2 or getspace(size + 1) - 80 < len(binstring): size += 1 n = getspace(size) # print size, len(binstring)