From e10d9d46fb245e39755e94414be0ff48d552de6e Mon Sep 17 00:00:00 2001 From: LawyZheng Date: Mon, 13 Jan 2025 17:56:45 +0800 Subject: [PATCH] decrease the hash trigger to 150 (#1541) --- skyvern/webeye/scraper/scraper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skyvern/webeye/scraper/scraper.py b/skyvern/webeye/scraper/scraper.py index 93169803..ce72d8b4 100644 --- a/skyvern/webeye/scraper/scraper.py +++ b/skyvern/webeye/scraper/scraper.py @@ -103,8 +103,8 @@ def json_to_html(element: dict, need_skyvern_attrs: bool = True) -> str: context = skyvern_context.ensure_context() # FIXME: Theoretically, all href links with over 69(64+1+4) length could be hashed - # but currently, just hash length>300 links to confirm the solution goes well - if "href" in attributes and len(attributes.get("href", "")) > 300: + # but currently, just hash length>150 links to confirm the solution goes well + if "href" in attributes and len(attributes.get("href", "")) > 150: href = attributes.get("href", "") # jinja style can't accept the variable name starts with number # adding "_" to make sure the variable name is valid.