From 8a1c8058dd8d5010d3b875bcdeb5562397fc9e5a Mon Sep 17 00:00:00 2001 From: Serge Rehbinder Date: Wed, 21 Sep 2016 13:53:49 +0200 Subject: [PATCH] 'sat jobs': fix bug when --publish is without --input_file --- commands/jobs.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/commands/jobs.py b/commands/jobs.py index 81a08db..6fd6ced 100644 --- a/commands/jobs.py +++ b/commands/jobs.py @@ -1037,8 +1037,11 @@ class Gui(object): # The path of the csv files to read to fill the expected boards self.file_boards = file_boards - today = datetime.date.weekday(datetime.date.today()) - self.parse_csv_boards(today) + if file_boards != "": + today = datetime.date.weekday(datetime.date.today()) + self.parse_csv_boards(today) + else: + self.d_input_boards = {} # The path of the global xml file self.xml_dir_path = xml_dir_path -- 2.39.2