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
Merge requests
!60
Pylint
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Pylint
pylint
into
dev
Overview
0
Commits
15
Pipelines
1
Changes
15
Merged
Vincent Texier
requested to merge
pylint
into
dev
6 years ago
Overview
0
Commits
15
Pipelines
1
Changes
15
Add pylint in requirements_dev.txt Add pylint in MakeFile Fix code to comply with pylint alerts
0
0
Merge request reports
Compare
dev
dev (base)
and
latest version
latest version
57bcd7ca
15 commits,
6 years ago
15 files
+
128
−
105
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
15
duniterpy/api/bma/network.py
+
3
−
2
View file @ 57bcd7ca
Edit in single-file editor
Open in Web IDE
Show full file
@@ -155,9 +155,10 @@ async def peers(client: Client, leaves: bool = False, leaf: str = "") -> dict:
:return:
"""
if
leaves
is
True
:
re
turn
await
client
.
get
(
MODULE
+
'
/peering/peers
'
,
{
"
leaves
"
:
"
true
"
},
schema
=
PEERS_SCHEMA
)
re
sponse
=
await
client
.
get
(
MODULE
+
'
/peering/peers
'
,
{
"
leaves
"
:
"
true
"
},
schema
=
PEERS_SCHEMA
)
else
:
return
await
client
.
get
(
MODULE
+
'
/peering/peers
'
,
{
"
leaf
"
:
leaf
},
schema
=
PEERS_SCHEMA
)
response
=
await
client
.
get
(
MODULE
+
'
/peering/peers
'
,
{
"
leaf
"
:
leaf
},
schema
=
PEERS_SCHEMA
)
return
response
async
def
peer
(
client
:
Client
,
peer_signed_raw
:
str
)
->
ClientResponse
:
Loading