Update result.py
Browse files
result.py
CHANGED
|
@@ -1,12 +1,12 @@
|
|
| 1 |
# result.py
|
| 2 |
import yfinance as yf
|
| 3 |
from common import make_table, wrap_html, format_large_number, html_error
|
| 4 |
-
|
| 5 |
def fetch_result(symbol):
|
| 6 |
-
|
| 7 |
try:
|
| 8 |
-
|
| 9 |
-
df =
|
| 10 |
|
| 11 |
if df.empty:
|
| 12 |
return wrap_html(f"<h1>No annual results available for {symbol}</h1>")
|
|
|
|
| 1 |
# result.py
|
| 2 |
import yfinance as yf
|
| 3 |
from common import make_table, wrap_html, format_large_number, html_error
|
| 4 |
+
from yf import result
|
| 5 |
def fetch_result(symbol):
|
| 6 |
+
|
| 7 |
try:
|
| 8 |
+
|
| 9 |
+
df = result(symbol)
|
| 10 |
|
| 11 |
if df.empty:
|
| 12 |
return wrap_html(f"<h1>No annual results available for {symbol}</h1>")
|