Skip to content

Commit a611a73

Browse files
committed
Se debía validar scraper no playwright para instalar dependencias
1 parent 752e7e1 commit a611a73

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

fabricator/recipes.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -241,18 +241,18 @@ def install_deps(c: Connection | DockerRunner | Context, config: dict) -> None:
241241
pty=True
242242
)
243243

244-
# Install Playwright browsers if playwright is installed
245-
logger.info("Checking if Playwright is installed...")
246-
playwright_check = c.run(
244+
# Install Playwright browsers if scraper-apigateway is installed
245+
logger.info("Checking if scraper-apigateway is installed...")
246+
scraper_check = c.run(
247247
f"bash -c 'source {venv_dir}/bin/activate && "
248248
f"cd {deploy_path} && "
249-
f"python -c \"import playwright; print('playwright installed')\"'",
249+
f"python -c \"import scraper_apigateway; print('scraper-apigateway installed')\"'", # noqa: E501
250250
pty=True,
251251
warn=True,
252252
hide=True
253253
)
254254

255-
if playwright_check and playwright_check.ok:
255+
if scraper_check and scraper_check.ok:
256256
logger.info("Installing Playwright browsers...")
257257
c.run(
258258
f"bash -c 'source {venv_dir}/bin/activate && "
@@ -270,8 +270,8 @@ def install_deps(c: Connection | DockerRunner | Context, config: dict) -> None:
270270
)
271271
else:
272272
logger.info(
273-
"Playwright not found in requirements, "
274-
"skipping browser installation."
273+
"scraper-apigateway not found in requirements, "
274+
"skipping Playwright browser installation."
275275
)
276276

277277
def migrate(c: Connection | DockerRunner | Context, config: dict) -> None:

0 commit comments

Comments
 (0)