summaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
authorOrangerot <purple@orangerot.dev>2024-08-16 23:40:38 +0200
committerOrangerot <purple@orangerot.dev>2024-08-26 11:19:38 +0200
commitd0df3af583d5b5290498a288b6fc3194bee6b357 (patch)
tree71f66f1b34fa357fa85a8a2aebfa0e694ac75883 /src/model
parentb672b4698c721fa6dfd5dff965e08059d51bddda (diff)
fix(EventInfoPage): show comptitor statistics
Diffstat (limited to 'src/model')
-rw-r--r--src/model/SportModel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/model/SportModel.cpp b/src/model/SportModel.cpp
index 557affe..0a99c55 100644
--- a/src/model/SportModel.cpp
+++ b/src/model/SportModel.cpp
@@ -101,9 +101,9 @@ void SportModel::parseData() {
Competitor *comp = new Competitor(this);
comp->setCompetitor(competitor.toObject());
if (medals.find(comp->name()) != medals.end()) comp->setMedals(medals.find(comp->name())->second);
- if (!competitors.empty()) comp->setStatistic(competitors.first()->mark());
competitors << comp;
}
+ addRelativeToFirst(competitors);
event->setCompetitors(competitors);
qDebug() << entry["eventUnitName"].toString();