Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DuniterPy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
python
DuniterPy
Commits
7712d18c
Commit
7712d18c
authored
8 years ago
by
inso
Browse files
Options
Downloads
Patches
Plain Diff
Fix certify parameters
parent
8d65c5c1
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
duniterpy/__init__.py
+1
-1
1 addition, 1 deletion
duniterpy/__init__.py
duniterpy/api/bma/wot.py
+3
-3
3 additions, 3 deletions
duniterpy/api/bma/wot.py
with
4 additions
and
4 deletions
duniterpy/__init__.py
+
1
−
1
View file @
7712d18c
...
...
@@ -16,7 +16,7 @@
# Caner Candan <caner@candan.fr>, http://caner.candan.fr
#
PROTOCOL_VERSION
=
"
1
"
PROTOCOL_VERSION
=
"
6
"
MANAGED_API
=
[
"
BASIC_MERKLED_API
"
,
"
BMAS
"
]
...
...
This diff is collapsed.
Click to expand it.
duniterpy/api/bma/wot.py
+
3
−
3
View file @
7712d18c
...
...
@@ -285,17 +285,17 @@ async def add(connection, identity):
r
=
await
client
.
requests_post
(
'
/add
'
,
identity
=
identity
)
return
r
async
def
certify
(
connection
,
cert
ification
):
async
def
certify
(
connection
,
cert
):
"""
POST certification document
:param duniterpy.api.bma.ConnectionHandler connection: Connection handler instance
:param duniterpy.documents.certification.Certification cert
ification
: Certification document
:param duniterpy.documents.certification.Certification cert: Certification document
:rtype: aiohttp.ClientResponse
"""
client
=
API
(
connection
,
URL_PATH
)
r
=
await
client
.
requests_post
(
'
/certify
'
,
cert
=
cert
ification
)
r
=
await
client
.
requests_post
(
'
/certify
'
,
cert
=
cert
)
return
r
async
def
revoke
(
connection
,
revocation
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment