From 1522538d68a534edf6ef45d103aaa8771abc4f92 Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Tue, 14 Apr 2026 08:58:47 -0500 Subject: [PATCH] Update get-weather.nu to url encode location --- modules/weather/get-weather.nu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/weather/get-weather.nu b/modules/weather/get-weather.nu index bf6eadb5c..bbe0e0c92 100644 --- a/modules/weather/get-weather.nu +++ b/modules/weather/get-weather.nu @@ -43,7 +43,7 @@ def get_my_location [index: int] { def get_location_by_ip [locIdx: int, token: string] { let URL_QUERY_LOCATION = "https://api.openweathermap.org/geo/1.0/direct" - let location = (get_my_location $locIdx) + let location = (get_my_location $locIdx | url encode) let url = $"($URL_QUERY_LOCATION)?q=($location)&limit=5&appid=($token)" http get $url }