Skip to content

Commit

Permalink
fix 'fetch_validators' task
Browse files Browse the repository at this point in the history
  • Loading branch information
mpnowacki-reef committed Jan 19, 2025
1 parent d4428e7 commit 09fc563
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions compute_horde/compute_horde/validators/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@ def fetch_validators():
to_deactivate = []
to_create = []
for validator in Validator.objects.all():
if validator.public_key in validator_keys:
hotkey = getattr(validator, key_field)
if hotkey in validator_keys:
to_activate.append(validator)
validator.active = True
validator_keys.remove(validator.public_key)
setattr(validator, active_field, True)
validator_keys.remove(hotkey)
else:
validator.active = False
setattr(validator, active_field, False)
to_deactivate.append(validator)

for key in validator_keys:
Expand Down
2 changes: 1 addition & 1 deletion compute_horde/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "compute-horde"
version = "0.0.19"
version = "0.0.20"
authors = [{name = "Backend Developers LTD"}]
license = {text = "MIT License"}
readme = "README.md"
Expand Down

0 comments on commit 09fc563

Please sign in to comment.