We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2ca3e9 commit 5706f39Copy full SHA for 5706f39
adscrawler/app_stores/utils.py
@@ -28,8 +28,7 @@ def insert_new_apps(
28
dicts: list[dict], database_connection: PostgresCon, crawl_source: str, store: int
29
) -> None:
30
df = pd.DataFrame(dicts)
31
- df["store_id"].str.match(r"^[0-9].*\.")
32
- found_bad_ids = df[df["store"] == store, "store_id"].str.match(r"^[0-9].*\.").any()
+ found_bad_ids = df.loc[df["store"] == 2, "store_id"].str.match(r"^[0-9].*\.").any()
33
if found_bad_ids:
34
logger.error(f"Scrape {store=} {crawl_source=} found bad store_ids")
35
raise ValueError("Found bad store_ids")
0 commit comments