Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sakia
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
clients
python
sakia
Commits
e66c53df
Commit
e66c53df
authored
5 years ago
by
Vincent Texier
Browse files
Options
Downloads
Patches
Plain Diff
[fix] fix missing node software and software_version in network view
parent
8d53b5c2
No related branches found
No related tags found
1 merge request
!775
0.50.0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sakia/data/processors/nodes.py
+12
-0
12 additions, 0 deletions
src/sakia/data/processors/nodes.py
with
12 additions
and
0 deletions
src/sakia/data/processors/nodes.py
+
12
−
0
View file @
e66c53df
import
attr
import
sqlite3
from
duniterpy.documents.ws2p.heads
import
HeadV1
,
HeadV2
from
sakia.constants
import
ROOT_SERVERS
from
..entities
import
Node
from
duniterpy.documents
import
BlockUID
...
...
@@ -154,6 +157,15 @@ class NodesProcessor:
logging
.
debug
(
"
Update node : {0}
"
.
format
(
head
.
pubkey
[:
5
]))
node
.
previous_buid
=
node
.
current_buid
node
.
current_buid
=
head
.
blockstamp
# todo: https://git.duniter.org/clients/python/duniterpy/issues/120
# capture sofware and version
if
isinstance
(
head
,
HeadV2
):
node
.
software
=
head
.
v1
.
software
node
.
version
=
head
.
v1
.
software_version
else
:
node
.
software
=
head
.
software
node
.
version
=
head
.
software_version
self
.
_repo
.
update
(
node
)
return
node
,
True
return
node
,
False
...
...
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