From 0baad1442c327f4376d3666b6b6cae77c544d4d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 28 Apr 2015 14:06:01 +0200 Subject: Fix solution.apply error --- scripts/solution.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/solution.py') diff --git a/scripts/solution.py b/scripts/solution.py index b3bec30..0e4efcd 100644 --- a/scripts/solution.py +++ b/scripts/solution.py @@ -81,8 +81,8 @@ def apply(): # Write solution to output_confs file with open(sf(conf.output_confs), 'a') as f: iteration = 0 - with open(sf(conf.iteration_file)) as f: - iteration = int(f.readline) + with open(sf(conf.iteration_file)) as ff: + iteration = int(ff.readline()) f.write(str(iteration) + ':') for txt in solut: f.write(txt + ' ') -- cgit v1.2.3