Skip to content

Commit

Permalink
Replace NP for IsoPower in DataFilter validation and syntax helpers
Browse files Browse the repository at this point in the history
Issue reported at the forum
  • Loading branch information
amtriathlon committed Jul 31, 2018
1 parent 1a7839d commit beb5b37
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Core/DataFilter.cpp
Expand Up @@ -1095,7 +1095,7 @@ void Leaf::validateFilter(Context *context, DataFilterRuntime *df, Leaf *leaf)
case Leaf::Function :
{
// is the symbol valid?
QRegExp bestValidSymbols("^(apower|power|hr|cadence|speed|torque|vam|xpower|np|wpk)$", Qt::CaseInsensitive);
QRegExp bestValidSymbols("^(apower|power|hr|cadence|speed|torque|vam|xpower|isopower|wpk)$", Qt::CaseInsensitive);
QRegExp tizValidSymbols("^(power|hr)$", Qt::CaseInsensitive);
QRegExp configValidSymbols("^(cranklength|cp|ftp|w\\'|pmax|cv|d\\'|scv|sd\\'|height|weight|lthr|maxhr|rhr|units)$", Qt::CaseInsensitive);
QRegExp constValidSymbols("^(e|pi)$", Qt::CaseInsensitive); // just do basics for now
Expand Down
2 changes: 1 addition & 1 deletion src/Core/UserData.cpp
Expand Up @@ -150,7 +150,7 @@ EditUserDataDialog::EditUserDataDialog(Context *context, UserData *here) :
list << "best(cadence, 3600)";
list << "best(speed, 3600)";
list << "best(torque, 3600)";
list << "best(np, 3600)";
list << "best(isopower, 3600)";
list << "best(xpower, 3600)";
list << "best(vam, 3600)";
list << "best(wpk, 3600)";
Expand Down
2 changes: 1 addition & 1 deletion src/Gui/EditUserMetricDialog.cpp
Expand Up @@ -152,7 +152,7 @@ EditUserMetricDialog::EditUserMetricDialog(QWidget *parent, Context *context, Us
list << "best(cadence, 3600)";
list << "best(speed, 3600)";
list << "best(torque, 3600)";
list << "best(np, 3600)";
list << "best(isopower, 3600)";
list << "best(xpower, 3600)";
list << "best(vam, 3600)";
list << "best(wpk, 3600)";
Expand Down
2 changes: 1 addition & 1 deletion src/Gui/SearchBox.cpp
Expand Up @@ -187,7 +187,7 @@ SearchBox::configChanged(qint32)
list << "best(cadence, 3600)";
list << "best(speed, 3600)";
list << "best(torque, 3600)";
list << "best(np, 3600)";
list << "best(isopower, 3600)";
list << "best(xpower, 3600)";
list << "best(vam, 3600)";
list << "best(wpk, 3600)";
Expand Down

0 comments on commit beb5b37

Please sign in to comment.