From d429694bcc3c9e8b06e497a069f8b95a6f15cab2 Mon Sep 17 00:00:00 2001 From: khamidou Date: Thu, 18 Feb 2010 17:06:00 +0100 Subject: [PATCH] liszt update is less strict now --- liszt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/liszt b/liszt index 01f6f4a..3baeb33 100755 --- a/liszt +++ b/liszt @@ -252,10 +252,12 @@ class CommandParser(object): fields = line.split("\t") if len(fields) != 3: - bailout("Error at line %d : one of the fields is not correctly formatted." % i) - - dict = {"request" : "create-entry", "listname" : listname, - "index" : i, "contents" : {"title" : fields[0], "date" : fields[1], "done": fields[2]}} + # Then, only take the first field : + dict = {"request" : "create-entry", "listname" : listname, + "index" : i, "contents" : {"title" : fields[0]}} + else: + dict = {"request" : "create-entry", "listname" : listname, + "index" : i, "contents" : {"title" : fields[0], "date" : fields[1], "done": fields[2]}} create_spool_file(dict) -- 2.43.0