Falko Schindler 1 سال پیش
والد
کامیت
8d0afa67f1
1فایلهای تغییر یافته به همراه1 افزوده شده و 3 حذف شده
  1. 1 3
      website/search.py

+ 1 - 3
website/search.py

@@ -7,9 +7,7 @@ class Search:
         ui.add_head_html(r'''
             <script>
             async function loadSearchData() {
-                const response = await fetch("'''
-                         f'/static/search_index.json?version={__version__}");'
-                         r'''
+                const response = await fetch("/static/search_index.json?version=''' + __version__ + r'''");'
                 if (!response.ok) {
                     throw new Error(`HTTP error! status: ${response.status}`);
                 }