log peer id
This commit is contained in:
parent
63b7f08825
commit
c27ddd4170
1 changed files with 2 additions and 2 deletions
|
@ -217,7 +217,7 @@ class Peer(object):
|
|||
getpreview = []
|
||||
t0 = time.time()
|
||||
if remove:
|
||||
logger.debug('remove %s items', len(remove))
|
||||
logger.debug('remove %s items from %s', len(remove), self.id)
|
||||
q = item.models.user_items.delete().where(c_user_id.is_(self.id)).where(c_item_id.in_(remove))
|
||||
state.db.session.execute(q)
|
||||
q = user.models.list_items.delete().where(l_list_id.in_(lists)).where(l_item_id.in_(remove))
|
||||
|
@ -231,7 +231,7 @@ class Peer(object):
|
|||
listitems[row['list_id']].add(row['item_id'])
|
||||
t0 = maybe_commit(t0)
|
||||
if add:
|
||||
logger.debug('add %s items', len(add))
|
||||
logger.debug('add %s items from %s', len(add), self.id)
|
||||
t0 = time.time()
|
||||
q = item.models.user_items.select().where(c_user_id.is_(self.id))
|
||||
useritems = {r['item_id'] for r in state.db.session.execute(q)}
|
||||
|
|
Loading…
Reference in a new issue