diff --git a/mmssms2xml.py b/mmssms2xml.py index 7b47728..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, 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, 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, failure_cause, locked, error_code, stack_type, seen, sort_index = 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