decrease the hash trigger to 150 (#1541)
This commit is contained in:
@@ -103,8 +103,8 @@ def json_to_html(element: dict, need_skyvern_attrs: bool = True) -> str:
|
|||||||
context = skyvern_context.ensure_context()
|
context = skyvern_context.ensure_context()
|
||||||
|
|
||||||
# FIXME: Theoretically, all href links with over 69(64+1+4) length could be hashed
|
# 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
|
# but currently, just hash length>150 links to confirm the solution goes well
|
||||||
if "href" in attributes and len(attributes.get("href", "")) > 300:
|
if "href" in attributes and len(attributes.get("href", "")) > 150:
|
||||||
href = attributes.get("href", "")
|
href = attributes.get("href", "")
|
||||||
# jinja style can't accept the variable name starts with number
|
# jinja style can't accept the variable name starts with number
|
||||||
# adding "_" to make sure the variable name is valid.
|
# adding "_" to make sure the variable name is valid.
|
||||||
|
|||||||
Reference in New Issue
Block a user