Skip to content

Commit f51e513

Browse files
committed
Use subnet.symbol rather than netuid
1 parent 2972b8f commit f51e513

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

bittensor_cli/src/commands/subnets/subnets.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -323,17 +323,16 @@ def _create_table(subnets_, block_number_):
323323

324324
for subnet in subnets_:
325325
netuid = subnet.netuid
326-
# The symbols for 123 and 124 are visually identical:
326+
# The default symbols for 123 and 124 are visually identical:
327327
# 123: 𑀀
328328
# 124: 𑀁
329329
# and the symbol for 125 is basically a colon
330330
# 125: 𑀂
331331
# however, because they're in Brahmi, which very few fonts support, they don't render properly
332332
# This patches them.
333-
if netuid == 125:
334-
subnet.symbol = ":"
335-
elif netuid in (124, 123):
336-
subnet.symbol = "˙"
333+
replacements = {69632: "˙", 69633: "˙", 69634: ":"}
334+
if (sso := ord(subnet.symbol)) in replacements.keys():
335+
subnet.symbol = replacements[sso]
337336

338337
symbol = f"{subnet.symbol}\u200e"
339338

0 commit comments

Comments
 (0)