]> khamidou — GitHub mirrors - liszt.git/commitdiff
liszt update is less strict now
authorkhamidou <khamidou@gmail.com>
Thu, 18 Feb 2010 16:06:00 +0000 (17:06 +0100)
committerkhamidou <khamidou@gmail.com>
Thu, 18 Feb 2010 16:06:00 +0000 (17:06 +0100)
liszt

diff --git a/liszt b/liszt
index 01f6f4a44183094d37e5925f72333bb503fe3ed7..3baeb33eb567dc63ea5c09256770655c34462e7f 100755 (executable)
--- 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)