add verify token new
parent
21553992d4
commit
ed8714f69a
@ -0,0 +1,9 @@
|
||||
def extract_template(path_string, value_dict):
|
||||
template = path_string
|
||||
|
||||
# Replace each value in the dict with its corresponding key placeholder
|
||||
for key, value in value_dict.items():
|
||||
if str(value) in template:
|
||||
template = template.replace(str(value), f'<{key}>')
|
||||
|
||||
return template
|
||||
Loading…
Reference in New Issue