Replace yahoo finance to stooq (#131)

Old code is dropped to separated provider
This commit is contained in:
2017-12-15 02:01:34 +03:00
parent eb911551eb
commit e5a9e99438
134 changed files with 1213 additions and 1597 deletions

View File

@ -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"] = "";