mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 00:28:42 +00:00
Banister - fixed score accumulation for multiple activities per day
It was notable when a second activy has score=0, s.t. a transition run, provoked the score for the day to go to zero.
This commit is contained in:
@@ -272,7 +272,7 @@ Banister::refresh()
|
||||
// load measure
|
||||
double score = item->getForSymbol(symbol);
|
||||
long day = item->dateTime.date().toJulianDay() - start.toJulianDay();
|
||||
data[day].score = score;
|
||||
data[day].score += score;
|
||||
|
||||
// average out measures
|
||||
if (score>0) {
|
||||
|
||||
Reference in New Issue
Block a user