diff options
-rw-r--r-- | protocols/Weather/src/weather_update.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/Weather/src/weather_update.cpp b/protocols/Weather/src/weather_update.cpp index cfc5e95a7a..a03e0aeeca 100644 --- a/protocols/Weather/src/weather_update.cpp +++ b/protocols/Weather/src/weather_update.cpp @@ -398,7 +398,6 @@ int CWeatherProto::GetWeatherData(MCONTACT hContact) // writing current conditions auto &curr = root["currentConditions"]; OBJLIST<WIDATAITEM> arValues(20); - arValues.insert(new WIDATAITEM(L"Update", L"", curr["datetime"].as_mstring())); getData(arValues, curr); auto szIcon = curr["icon"].as_string(); @@ -425,6 +424,8 @@ int CWeatherProto::GetWeatherData(MCONTACT hContact) // writing forecast int iFore = 0; + db_set_ws(hContact, WEATHERCONDITION, "Update", curr["datetime"].as_mstring()); + for (auto &fore : root["days"]) { getData(arValues, fore); |