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
922a23b4
Commit
922a23b4
authored
8 years ago
by
inso
Browse files
Options
Downloads
Patches
Plain Diff
Fix current_mass computing
parent
44e83a44
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/sakia/data/processors/blockchain.py
+1
-1
1 addition, 1 deletion
src/sakia/data/processors/blockchain.py
src/sakia/gui/navigation/controller.py
+1
-1
1 addition, 1 deletion
src/sakia/gui/navigation/controller.py
with
2 additions
and
2 deletions
src/sakia/data/processors/blockchain.py
+
1
−
1
View file @
922a23b4
...
@@ -302,7 +302,7 @@ class BlockchainProcessor:
...
@@ -302,7 +302,7 @@ class BlockchainProcessor:
blockchain
.
previous_ud
=
blockchain
.
last_ud
blockchain
.
previous_ud
=
blockchain
.
last_ud
blockchain
.
previous_ud_base
=
blockchain
.
last_ud_base
blockchain
.
previous_ud_base
=
blockchain
.
last_ud_base
blockchain
.
previous_ud_time
=
blockchain
.
last_ud_time
blockchain
.
previous_ud_time
=
blockchain
.
last_ud_time
blockchain
.
current_mass
=
block
chain
.
current_mass
+
block
.
ud
*
block
.
members_count
blockchain
.
current_mass
+
=
(
block
.
ud
*
10
**
block
.
unit_base
)
*
block
.
members_count
blockchain
.
last_members_count
=
block
.
members_count
blockchain
.
last_members_count
=
block
.
members_count
blockchain
.
last_ud
=
block
.
ud
blockchain
.
last_ud
=
block
.
ud
blockchain
.
last_ud_base
=
block
.
unit_base
blockchain
.
last_ud_base
=
block
.
unit_base
...
...
This diff is collapsed.
Click to expand it.
src/sakia/gui/navigation/controller.py
+
1
−
1
View file @
922a23b4
...
@@ -103,7 +103,7 @@ class NavigationController(QObject):
...
@@ -103,7 +103,7 @@ class NavigationController(QObject):
self
.
parse_node
(
raw_node
)
self
.
parse_node
(
raw_node
)
def
tree_context_menu
(
self
,
point
):
def
tree_context_menu
(
self
,
point
):
mapped
=
self
.
view
.
tree_view
.
mapFromParent
(
point
)
mapped
=
self
.
view
.
splitter
.
mapFromParent
(
point
)
index
=
self
.
view
.
tree_view
.
indexAt
(
mapped
)
index
=
self
.
view
.
tree_view
.
indexAt
(
mapped
)
raw_data
=
self
.
view
.
tree_view
.
model
().
data
(
index
,
GenericTreeModel
.
ROLE_RAW_DATA
)
raw_data
=
self
.
view
.
tree_view
.
model
().
data
(
index
,
GenericTreeModel
.
ROLE_RAW_DATA
)
if
raw_data
and
raw_data
[
"
component
"
]
==
"
Informations
"
:
if
raw_data
and
raw_data
[
"
component
"
]
==
"
Informations
"
:
...
...
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