diff --git a/docker/Dockerfile b/docker/Dockerfile index 52f63b001..a62cd4a50 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -40,6 +40,7 @@ trusted-host = mirrors.aliyun.com" > /etc/pip.conf && \ pip install bokeh && \ pip install pandas && \ pip install tornado && \ + pip install racer && \ pip install easytrader && \ curl -SL https://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz | tar -xzC . && \ cd ta-lib/ && \ diff --git a/instock/core/crawling/stock_fund_em.py b/instock/core/crawling/stock_fund_em.py index 7f901b291..e030c307e 100644 --- a/instock/core/crawling/stock_fund_em.py +++ b/instock/core/crawling/stock_fund_em.py @@ -275,7 +275,7 @@ def stock_sector_fund_flow_rank( text_data = r.text json_data = json.loads(text_data[text_data.find("{") : -2]) temp_df = pd.DataFrame(json_data["data"]["diff"]) - # temp_df = temp_df[~temp_df["f3"].isin(["-"])] + temp_df = temp_df[~temp_df["f2"].isin(["-"])] if indicator == "今日": temp_df.columns = [ "-",