diff --git a/bigchaindb/backend/rethinkdb/query.py b/bigchaindb/backend/rethinkdb/query.py index 18c88f82..dda6aaf9 100644 --- a/bigchaindb/backend/rethinkdb/query.py +++ b/bigchaindb/backend/rethinkdb/query.py @@ -120,14 +120,16 @@ def get_owned_ids(connection, owner): def get_votes_by_block_id(connection, block_id): return connection.run( r.table('votes', read_mode=READ_MODE) - .between([block_id, r.minval], [block_id, r.maxval], index='block_and_voter')) + .between([block_id, r.minval], [block_id, r.maxval], index='block_and_voter') + .without('id')) @register_query(RethinkDBConnection) def get_votes_by_block_id_and_voter(connection, block_id, node_pubkey): return connection.run( r.table('votes') - .get_all([block_id, node_pubkey], index='block_and_voter')) + .get_all([block_id, node_pubkey], index='block_and_voter') + .without('id')) @register_query(RethinkDBConnection) diff --git a/tests/backend/test_schema.py b/tests/backend/test_generics.py similarity index 100% rename from tests/backend/test_schema.py rename to tests/backend/test_generics.py