Skip to content

Commit

Permalink
api: fixed get metric one query, include channels_info
Browse files Browse the repository at this point in the history
Changelog-Fixed: api: fixed get metric one query, include channels_info

Signed-off-by: Vincenzo Palazzo <[email protected]>
  • Loading branch information
vincenzopalazzo committed Apr 17, 2022
1 parent 5281de9 commit 974dcba
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions lnmetrics_api/queries/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,36 @@
end
hash_next_page
}
channels_info {
node_id
channel_id
node_alias
color
capacity
forwards {
direction
status
failure_reason
failure_code
timestamp
}
up_time {
event
status
timestamp
}
online
last_update
direction
fee {
base
per_msat
}
limits {
min
max
}
}
up_time {
event
channels {
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "Python implementation of the lnmetrics API to query the lnmetrics
authors = ["Vincenzo Palazzo <[email protected]>"]

[tool.poetry.dependencies]
python = "^3.8"
python = "^3.7"
gql = "^3.1.0"
aiohttp = "^3.8.1"

Expand Down

0 comments on commit 974dcba

Please sign in to comment.