mirror of
https://gitlab.com/simple-stock-bots/simple-stock-bot.git
synced 2025-06-16 07:16:40 +00:00
never actually compared match to anything
This commit is contained in:
parent
e7c94d51c8
commit
e1ff4a3d56
@ -37,7 +37,7 @@ class Symbol:
|
||||
)
|
||||
|
||||
symbols.sort_values(by="Match", ascending=False, inplace=True)
|
||||
if symbols["Match"].head().sum():
|
||||
if symbols["Match"].head().sum() < 300:
|
||||
symbols["Match"] = symbols.apply(
|
||||
lambda x: fuzz.partial_ratio(
|
||||
search.lower(), f"{x['Symbol']} {x['Issue_Name']}".lower()
|
||||
@ -45,7 +45,7 @@ class Symbol:
|
||||
axis=1,
|
||||
)
|
||||
symbols.sort_values(by="Match", ascending=False, inplace=True)
|
||||
print(symbols.head())
|
||||
|
||||
return list(zip(list(symbols["Symbol"]), list(symbols["Description"])))
|
||||
|
||||
def find_symbols(self, text: str):
|
||||
|
Loading…
x
Reference in New Issue
Block a user