fix: remove double quotes

This commit is contained in:
Benexl
2025-12-02 17:30:31 +03:00
parent 3b008696d5
commit 6b8dfba57e
2 changed files with 2 additions and 3 deletions

View File

@@ -7,7 +7,6 @@
# filled by Python using .replace() during runtime.
import json
import os
import sys
from pathlib import Path
from urllib import request
@@ -19,7 +18,7 @@ SEARCH_RESULTS_FILE = Path("{SEARCH_RESULTS_FILE}")
AUTH_HEADER = "{AUTH_HEADER}"
# The GraphQL query is injected as a properly escaped JSON string
GRAPHQL_QUERY = {GRAPHQL_QUERY}
GRAPHQL_QUERY = "{GRAPHQL_QUERY}"
# --- Get Query from fzf ---
# fzf passes the current query as the first argument when using --bind change:reload

View File

@@ -29,7 +29,7 @@ def dynamic_search(ctx: Context, state: State) -> State | InternalDirective:
search_query = gql.SEARCH_MEDIA.read_text(encoding="utf-8")
# Escape the GraphQL query as a JSON string literal for Python script
search_query_json = json.dumps(search_query)
search_query_json = json.dumps(search_query).replace('"', "")
# Prepare the search script
auth_header = ""