Skip to content

Commit

Permalink
fixing rating command (#5081)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewkenreich authored May 31, 2023
1 parent 76fcaf7 commit d1f7342
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openbb_terminal/stocks/fundamental_analysis/finviz_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit d1f7342

Please sign in to comment.