From c745458fb3b454cbf6adda9a7b44f8d5fc739e31 Mon Sep 17 00:00:00 2001 From: eeva Date: Fri, 27 Apr 2012 21:51:01 +0200 Subject: [PATCH 1/2] That's what works here, without these columns --- mmssms2xml.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mmssms2xml.py b/mmssms2xml.py index 7b47728..b3a5a1b 100755 --- a/mmssms2xml.py +++ b/mmssms2xml.py @@ -30,12 +30,12 @@ def read_messages(dbfile): count = c.fetchone()[0] smses = etree.Element("smses", attrib={"count": str(count)}) - c.execute("SELECT _id, thread_id, address, person, date, protocol, read, priority, status, type, callback_number, reply_path_present, subject, body, service_center, failure_cause, locked, error_code, stack_type, seen, sort_index FROM sms ORDER BY date DESC") + c.execute("SELECT _id, thread_id, address, person, date, protocol, read, priority, status, type, callback_number, reply_path_present, subject, body, service_center, locked, error_code, seen FROM sms ORDER BY date DESC") while True: row = c.fetchone() if row is None: break - rec_id, thread_id, address, person, date, protocol, read, priority, status, type, callback_number, reply_path_present, subject, body, service_center, failure_cause, locked, error_code, stack_type, seen, sort_index = row + rec_id, thread_id, address, person, date, protocol, read, priority, status, type, callback_number, reply_path_present, subject, body, service_center, locked, error_code, seen = row if protocol is None: protocol = 0 From f849a9239e3c4289dc9d1fa6f831dd63ec444cfe Mon Sep 17 00:00:00 2001 From: eeva Date: Fri, 27 Apr 2012 22:03:08 +0200 Subject: [PATCH 2/2] More unused columns --- mmssms2xml.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mmssms2xml.py b/mmssms2xml.py index b3a5a1b..f16b36a 100755 --- a/mmssms2xml.py +++ b/mmssms2xml.py @@ -30,12 +30,12 @@ def read_messages(dbfile): count = c.fetchone()[0] smses = etree.Element("smses", attrib={"count": str(count)}) - c.execute("SELECT _id, thread_id, address, person, date, protocol, read, priority, status, type, callback_number, reply_path_present, subject, body, service_center, locked, error_code, seen FROM sms ORDER BY date DESC") + c.execute("SELECT _id, thread_id, address, person, date, protocol, read, status, type, reply_path_present, subject, body, service_center, locked, error_code, seen FROM sms ORDER BY date DESC") while True: row = c.fetchone() if row is None: break - rec_id, thread_id, address, person, date, protocol, read, priority, status, type, callback_number, reply_path_present, subject, body, service_center, locked, error_code, seen = row + rec_id, thread_id, address, person, date, protocol, read, status, type, reply_path_present, subject, body, service_center, locked, error_code, seen = row if protocol is None: protocol = 0