mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-08 10:22:09 +00:00
fixing rating command (#5081)
This commit is contained in:
@@ -87,7 +87,8 @@ def get_analyst_price_targets_workaround(
|
||||
'table[class="js-table-ratings fullview-ratings-outer"]'
|
||||
)[0]
|
||||
|
||||
for row in table:
|
||||
# skip first row of table since its the header
|
||||
for row in table[1:]:
|
||||
rating = row.xpath("td//text()")
|
||||
rating = [
|
||||
val.replace("→", "->").replace("$", "") for val in rating if val != "\n"
|
||||
|
||||
Reference in New Issue
Block a user