From 8b08666758bb32deb988e7074ff1a7d14b5faf2b Mon Sep 17 00:00:00 2001 From: Niklas Koep Date: Sun, 1 Mar 2020 23:41:35 +0100 Subject: [PATCH] sql/ex6: fix small bug in 'expert_finder' function --- learntools/sql/ex6.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/learntools/sql/ex6.py b/learntools/sql/ex6.py index 66bb24829..ae864a7bd 100644 --- a/learntools/sql/ex6.py +++ b/learntools/sql/ex6.py @@ -227,7 +227,7 @@ def expert_finder(topic, client): # Set up the query (a real service would have good error handling for # queries that scan too much data) safe_config = bigquery.QueryJobConfig(maximum_bytes_billed=10**10) - my_query_job = client.query(my_query, job_config=safe_config) + my_query_job = client.query(my_query.format(topic=topic), job_config=safe_config) # API request - run the query, and return a pandas DataFrame results = my_query_job.to_dataframe()