i think this works
This commit is contained in:
parent
c3e57757e2
commit
4ea6801df2
3 changed files with 28 additions and 6 deletions
|
@ -130,7 +130,7 @@ WeatherOutput Weather::getWeatherInfo() const {
|
|||
"weather?q={}&appid={}&units={}",
|
||||
location, apiKey, units);
|
||||
|
||||
result = MakeApiRequest(apiUrl);
|
||||
result = MakeApiRequest(apiUrl).value();
|
||||
} else {
|
||||
const auto [lat, lon] = get<Coords>(loc);
|
||||
|
||||
|
@ -141,7 +141,7 @@ WeatherOutput Weather::getWeatherInfo() const {
|
|||
"weather?lat={:.3f}&lon={:.3f}&appid={}&units={}",
|
||||
lat, lon, apiKey, units);
|
||||
|
||||
result = MakeApiRequest(apiUrl);
|
||||
result = MakeApiRequest(apiUrl).value();
|
||||
}
|
||||
|
||||
// Update the cache with the new data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue