From 859ac47cdfecb7586d3f78feba083b4c7334f3cd Mon Sep 17 00:00:00 2001 From: osmala <ossi.laine@utu.fi> Date: Mon, 15 Jun 2020 15:14:29 +0300 Subject: [PATCH] Fixed bug by typecasting value to int --- app/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/utils.py b/app/utils.py index 1da87b5..a06c23c 100644 --- a/app/utils.py +++ b/app/utils.py @@ -291,7 +291,7 @@ def generate_answer_row(participant, pages, questions, embody_questions): try: # for every brush stroke, increment the pixel # value for every brush stroke - coordinates_to_bitmap[point[0]][point[1]] += 0.1 + coordinates_to_bitmap[int(point[0])][int(point[1])] += 0.1 except IndexError: continue -- GitLab