mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2026-10-14 02:32:15 +00:00
Try to fix test for automatic run with travis
* Additionally calculate valid pressure
This commit is contained in:
1 parent
d097e154ff
commit
10f556e41b
8 files changed
+54
-17
No files matched your search
@@ -93,8 +93,9 @@ YahooWeatherProvider::parseCurrent(const QVariantMap &json,
|
||||
= json[QString("condition")].toMap()[QString("date")].toString();
|
||||
values[QString("humidity%1").arg(number())]
|
||||
= atmosphere[QString("humidity")].toInt();
|
||||
// HACK temporary fix of invalid values on Yahoo! side
|
||||
values[QString("pressure%1").arg(number())]
|
||||
= static_cast<int>(atmosphere[QString("pressure")].toFloat());
|
||||
= static_cast<int>(atmosphere[QString("pressure")].toFloat() / 33.863753);
|
||||
|
||||
return values;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user