Skip to content
Snippets Groups Projects
Commit 8dacca38 authored by inso's avatar inso
Browse files

Fix negative validations in wot_tab #194

parent 0248b7d1
No related branches found
No related tags found
No related merge requests found
......@@ -188,7 +188,9 @@ class Graph(object):
current_validations = 0
max_validation = self.community.network.fork_window(self.community.members_pubkeys()) + 1
if current_validations < max_validation:
# Current validation can be negative if self.community.network.latest_block_number
# is not refreshed yet
if max_validation > current_validations > 0:
if self.app.preferences['expert_mode']:
arc['validation_text'] = "{0}/{1}".format(current_validations,
max_validation)
......@@ -254,7 +256,7 @@ class Graph(object):
current_validations = 0
max_validations = self.community.network.fork_window(self.community.members_pubkeys()) + 1
if current_validations < max_validations:
if max_validations > current_validations > 0:
if self.app.preferences['expert_mode']:
arc['validation_text'] = "{0}/{1}".format(current_validations,
max_validations)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment