chansung commited on
Commit
a7ff712
β€’
1 Parent(s): 16272b2

Update constants/js.py

Browse files
Files changed (1) hide show
  1. constants/js.py +1 -1
constants/js.py CHANGED
@@ -2,7 +2,7 @@ UPDATE_SEARCH_RESULTS = f"""
2
  function search(searchIn, maxResults = 3) {{
3
  if (searchIn.trim().length > 0) {{
4
  const results = [];
5
- let titles = {list(titles)};
6
  for (const title of titles) {{ // Assuming 'titles' is an array defined elsewhere
7
  if (results.length > 10) {{
8
  break;
 
2
  function search(searchIn, maxResults = 3) {{
3
  if (searchIn.trim().length > 0) {{
4
  const results = [];
5
+ let titles = %s;
6
  for (const title of titles) {{ // Assuming 'titles' is an array defined elsewhere
7
  if (results.length > 10) {{
8
  break;