From 9c67df1b4b12840a875804591b727a1454dd6252 Mon Sep 17 00:00:00 2001
From: vtexier <vit@free.fr>
Date: Mon, 30 Mar 2020 10:44:37 +0200
Subject: [PATCH] [enh] #122 Implement /wot/requirements-of-pending support in
 BMA

---
 duniterpy/api/bma/wot.py | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/duniterpy/api/bma/wot.py b/duniterpy/api/bma/wot.py
index 4befb4b0..cc089732 100644
--- a/duniterpy/api/bma/wot.py
+++ b/duniterpy/api/bma/wot.py
@@ -331,6 +331,19 @@ async def requirements(client: Client, search: str) -> dict:
     )
 
 
+async def requirements_of_pending(client: Client, minsig: int) -> dict:
+    """
+    GET list of requirements of all pending identities with a minimum of minsig certifications
+
+    :param client: Client to connect to the api
+    :param minsig: Minimum number of certifications
+    :return:
+    """
+    return await client.get(
+        MODULE + "/requirements-of-pending/%d" % minsig, schema=REQUIREMENTS_SCHEMA
+    )
+
+
 async def identity_of(client: Client, search: str) -> dict:
     """
     GET Identity data written in the blockchain
-- 
GitLab