From 6d4726997f7fc9885507dd497d7e2bc0a045ac38 Mon Sep 17 00:00:00 2001 From: Moul <moul@moul.re> Date: Wed, 24 Feb 2021 21:59:25 +0100 Subject: [PATCH] [lint] Remove duplicate network/ws2p/heads BMA path Kept the one in 'bma' module --- duniterpy/api/ws2p/network.py | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/duniterpy/api/ws2p/network.py b/duniterpy/api/ws2p/network.py index e05c4652..d309fbe8 100644 --- a/duniterpy/api/ws2p/network.py +++ b/duniterpy/api/ws2p/network.py @@ -17,43 +17,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. import logging -from duniterpy.api.client import Client - logger = logging.getLogger("duniter/network") -MODULE = "network" - -WS2P_HEADS_SCHEMA = { - "type": "object", - "properties": { - "heads": { - "type": "array", - "items": { - "type": "object", - "properties": { - "message": {"type": "string"}, - "sig": {"type": "string"}, - "messageV2": {"type": "string"}, - "sigV2": {"type": "string"}, - "step": {"type": "number"}, - }, - "required": ["message", "sig"], - }, - } - }, - "required": ["heads"], -} - - -def heads(client: Client): - """ - GET Certification data over a member - - :param client: Client to connect to the api - :rtype: dict - """ - return client.get(MODULE + "/ws2p/heads", schema=WS2P_HEADS_SCHEMA) - WS2P_CONNECT_MESSAGE_SCHEMA = { "type": "object", -- GitLab