aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/solution.py4
1 files changed, 2 insertions, 2 deletions
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 + ' ')