# HG changeset patch # User Goffi # Date 1550250245 -3600 # Node ID fba96e95e329f68e5c50211995686940a175d5d7 # Parent 66128656f76c9018752069910508323af2f86e8e storage (pgsql): fixed filtering in getItemsPublishers diff -r 66128656f76c -r fba96e95e329 src/pgsql_storage.py --- a/src/pgsql_storage.py Fri Feb 15 16:31:38 2019 +0100 +++ b/src/pgsql_storage.py Fri Feb 15 18:04:05 2019 +0100 @@ -1264,8 +1264,8 @@ ret = {} for itemIdentifier in itemIdentifiers: cursor.execute("""SELECT publisher FROM items - WHERE item=%s""", - (itemIdentifier,)) + WHERE node_id=%s AND item=%s""", + (self.nodeDbId, itemIdentifier,)) result = cursor.fetchone() if result: ret[itemIdentifier] = jid.JID(result[0])