From 21abaed8702dbfd9b104a0a3c8871bc0acaefa5e Mon Sep 17 00:00:00 2001 From: Panos Mavrogiorgos Date: Mon, 20 Nov 2023 00:09:27 +0200 Subject: [PATCH] minor --- observer/ioc/fs.py | 2 +- observer/ioc/scraper.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/observer/ioc/fs.py b/observer/ioc/fs.py index d8f548e..7244bf2 100644 --- a/observer/ioc/fs.py +++ b/observer/ioc/fs.py @@ -46,7 +46,7 @@ def get_ioc_metadata(*, credential: Credential | None = None) -> pd.DataFrame: def write_ioc_df( *, df: pd.DataFrame, - ioc_code: str | None = None, + ioc_code: str, compression_level: int = 0, credential: Credential | None = None, **kwargs: dict[str, T.Any], diff --git a/observer/ioc/scraper.py b/observer/ioc/scraper.py index 95da1cc..baba094 100644 --- a/observer/ioc/scraper.py +++ b/observer/ioc/scraper.py @@ -151,5 +151,3 @@ def scrape_ioc_station( df = pd.DataFrame(columns=["time", "year"]) logger.info("%s: Finished scraping: %s - %s", ioc_code, start_date, end_date) return df - - return df