From 9e8d61df89449a009daa16dc7912e1edeb497cc3 Mon Sep 17 00:00:00 2001 From: Serge Rehbinder Date: Tue, 18 Oct 2016 16:27:04 +0200 Subject: [PATCH] sat jobs: put all the lines of input file in the resulting board --- commands/jobs.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/commands/jobs.py b/commands/jobs.py index 2b29f3a..601a049 100644 --- a/commands/jobs.py +++ b/commands/jobs.py @@ -1331,14 +1331,13 @@ class Gui(object): jobs = [] for line in input_board[1:]: row = line[0] + rows.append(row) for i, square in enumerate(line[1:]): if square=='': continue days = square.split(DAYS_SEPARATOR) days = [int(day) for day in days] - if today in days: - if row not in rows: - rows.append(row) + if today in days: job = (row, columns[i]) jobs.append(job) -- 2.39.2