mirror of
https://github.com/Benexl/FastAnime.git
synced 2025-12-12 07:40:41 -08:00
fix: remove double quotes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 = ""
|
||||
|
||||
Reference in New Issue
Block a user