Add RideItem ::color, ::isRun and ::present

.. as primary fields, and also load/save to cache.
This commit is contained in:
Mark Liversedge
2014-12-12 14:08:11 +00:00
parent f4ad330a5f
commit e97045703a
9 changed files with 36 additions and 17 deletions

View File

@@ -282,6 +282,9 @@ void RideCache::save()
stream << "\t\t\"crc\":\"" <<item->crc <<"\",\n";
stream << "\t\t\"timestamp\":\"" <<item->timestamp <<"\",\n";
stream << "\t\t\"dbversion\":\"" <<item->dbversion <<"\",\n";
stream << "\t\t\"color\":\"" <<item->color.name() <<"\",\n";
stream << "\t\t\"present\":\"" <<item->present <<"\",\n";
stream << "\t\t\"isRun\":\"" <<item->isRun <<"\",\n";
stream << "\t\t\"weight\":\"" <<item->weight <<"\",\n";
// pre-computed metrics