From 366e52b76dfda146dbc2bbdfda2d710169786d9b Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Sun, 21 Jul 2024 18:42:11 -0500 Subject: [PATCH] Update query web example since wikipedia keeps changing (#13421) # Description Every so ofter wikipedia changes the column names which breaks the query example. It would be good to make query web's table extraction to be smart enough to find tables that are close. This PR fixes the example. # User-Facing Changes # Tests + Formatting # After Submitting --- crates/nu_plugin_query/src/query_web.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/nu_plugin_query/src/query_web.rs b/crates/nu_plugin_query/src/query_web.rs index 163b320e16..39f50e51af 100644 --- a/crates/nu_plugin_query/src/query_web.rs +++ b/crates/nu_plugin_query/src/query_web.rs @@ -76,7 +76,7 @@ pub fn web_examples() -> Vec> { }, Example { example: "http get https://en.wikipedia.org/wiki/List_of_cities_in_India_by_population | - query web --as-table [City 'Population(2011)[3]' 'Population(2001)[3][a]' 'State or unionterritory' 'Ref']", + query web --as-table [City 'Population(2011)[3]' 'Population(2001)[3][a]' 'State or unionterritory' 'Reference']", description: "Retrieve a html table from Wikipedia and parse it into a nushell table using table headers as guides", result: None },