mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-14 14:25:50 +00:00
Replace yahoo finance to stooq (#131)
Old code is dropped to separated provider
This commit is contained in:
@ -45,10 +45,7 @@ QVariant CustomSource::data(const QString &_source)
|
||||
qCDebug(LOG_ESS) << "Source" << _source;
|
||||
|
||||
// there are only one value
|
||||
return m_extScripts->itemByTagNumber(index(_source))
|
||||
->run()
|
||||
.values()
|
||||
.first();
|
||||
return m_extScripts->itemByTagNumber(index(_source))->run().values().first();
|
||||
}
|
||||
|
||||
|
||||
@ -59,9 +56,8 @@ QVariantMap CustomSource::initialData(const QString &_source) const
|
||||
QVariantMap data;
|
||||
data["min"] = "";
|
||||
data["max"] = "";
|
||||
data["name"]
|
||||
= QString("Custom command '%1' output")
|
||||
.arg(m_extScripts->itemByTagNumber(index(_source))->uniq());
|
||||
data["name"] = QString("Custom command '%1' output")
|
||||
.arg(m_extScripts->itemByTagNumber(index(_source))->uniq());
|
||||
data["type"] = "QString";
|
||||
data["units"] = "";
|
||||
|
||||
|
Reference in New Issue
Block a user