- self.dbg('getMissedCallsCount started. agrs: ' + str(isSms))
- eType = 3
- if isSms:
- eType=7
- conn = sqlite3.connect(self.path)
- cur = conn.cursor()
- cur.execute("select count(id) from Events where event_type_id = " + str(eType))
+ self.dbg('getMissedCallsCount started. agrs: ' + str(isSms))
+ conn = sqlite3.connect(self.path)
+ cur = conn.cursor()
+ if isSms:
+ #Nokia changed the event number from 7 to 11 and also combined the incomming and outgoing sms's
+ cur.execute("select count(id) from Events where event_type_id = 11 and outgoing = 0")
+ else:
+ #Nokia changed the event from 3 to 2
+ cur.execute("select count(id) from Events where event_type_id = 2")