Skip to content

Commit

Permalink
fix: fix mistype assgnment
Browse files Browse the repository at this point in the history
  • Loading branch information
drunest committed Sep 19, 2024
1 parent 8042136 commit 8d751c4
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/bt_auto_dumper/_v2/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import time
import zipfile

import bittensor as bt
import bittensor as bt # type: ignore
import requests


Expand All @@ -29,16 +29,12 @@ def dump_and_upload(walletname, wallethotkey, subnet_identifier: str, autovalida
"omron": ["echo 'Mainnet Command 1'", "echo 'Mainnet Command 2'"],
}
wallet = bt.wallet(name=walletname, hotkey=wallethotkey)
commands = {}
for subnet_id, command in subnets.items():
if subnet_id == subnet_identifier:
commands[subnet_id] = command
break
if subnet_identifier in subnets:
commands = {subnet_identifier: subnets[subnet_identifier]}

if not commands:
print(f"Subnet identifier {subnet_identifier} not found.")
return

output_files = []
for subnet_id, cmds in commands.items():
for i, command in enumerate(cmds, start=1):
Expand Down

0 comments on commit 8d751c4

Please sign in to comment.