self.cur.execute('DELETE FROM roster_group WHERE account_jid_id=? AND jid_id=?',(account_jid_id,jid_id))
self.cur.execute(
'DELETE FROM roster_group WHERE account_jid_id=? AND jid_id=?',
(account_jid_id,jid_id))
# Then we add all new groups information
# Then we add all new groups information
forgroupingroups:
forgroupingroups:
self.cur.execute('INSERT INTO roster_group VALUES(?, ?, ?)',
self.cur.execute('INSERT INTO roster_group VALUES(?, ?, ?)',
...
@@ -914,14 +925,19 @@ class Logger:
...
@@ -914,14 +925,19 @@ class Logger:
account_jid_id=self.get_jid_id(account_jid)
account_jid_id=self.get_jid_id(account_jid)
# First we fill data with roster_entry informations
# First we fill data with roster_entry informations
self.cur.execute('SELECT j.jid, re.jid_id, re.name, re.subscription, re.ask FROM roster_entry re, jids j WHERE re.account_jid_id=? AND j.jid_id=re.jid_id',(account_jid_id,))