added log statement

This commit is contained in:
Daniil Fajnberg 2021-12-03 16:01:00 +01:00
parent c18ab65a7d
commit 3959aff10e

View File

@ -88,6 +88,7 @@ async def _get_single_company_fin_stmt(statement: str, ticker_symbol: str, quart
""" """
Returns data from the specified financial statement of the specified company. Returns data from the specified financial statement of the specified company.
""" """
log.info(f"Scraping {statement} for {ticker_symbol}")
url = f'{BASE_URL}/{ticker_symbol}/financials{FIN_STMT_URL_SUFFIX[statement]}' url = f'{BASE_URL}/{ticker_symbol}/financials{FIN_STMT_URL_SUFFIX[statement]}'
if quarterly: if quarterly:
url += '/quarter' url += '/quarter'