File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed
bittensor_cli/src/commands Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change 9
9
from bittensor_wallet import Wallet , Keypair
10
10
from bittensor_wallet .errors import KeyFileError
11
11
from bittensor_wallet .keyfile import Keyfile
12
- from fuzzywuzzy import fuzz
13
12
from rich import box
14
13
from rich .align import Align
15
14
from rich .table import Column , Table
@@ -1227,16 +1226,11 @@ async def overview(
1227
1226
1228
1227
if sort_by :
1229
1228
column_to_sort_by : int = 0
1230
- highest_matching_ratio : int = 0
1231
1229
sort_descending : bool = False # Default sort_order to ascending
1232
1230
1233
1231
for index , column in zip (range (len (table .columns )), table .columns ):
1234
- # Fuzzy match the column name. Default to the first column.
1235
1232
column_name = column .header .lower ().replace ("[white]" , "" )
1236
- match_ratio = fuzz .ratio (sort_by .lower (), column_name )
1237
- # Finds the best matching column
1238
- if match_ratio > highest_matching_ratio :
1239
- highest_matching_ratio = match_ratio
1233
+ if column_name == sort_by .lower ().strip ():
1240
1234
column_to_sort_by = index
1241
1235
1242
1236
if sort_order .lower () in {"desc" , "descending" , "reverse" }:
Original file line number Diff line number Diff line change @@ -20,14 +20,12 @@ dependencies = [
20
20
" backoff~=2.2.1" ,
21
21
" click<8.2.0" , # typer.testing.CliRunner(mix_stderr=) is broken in click 8.2.0+
22
22
" GitPython>=3.0.0" ,
23
- " fuzzywuzzy~=0.18.0" ,
24
23
" netaddr~=1.3.0" ,
25
24
" numpy>=2.0.1,<3.0.0" ,
26
25
" Jinja2" ,
27
26
" pycryptodome>=3.0.0,<4.0.0" ,
28
27
" PyYAML~=6.0.1" ,
29
28
" pytest" ,
30
- " python-Levenshtein" ,
31
29
" rich>=13.7,<15.0" ,
32
30
" scalecodec==1.2.11" ,
33
31
" typer>=0.12,<0.16" ,
You can’t perform that action at this time.
0 commit comments