summaryrefslogtreecommitdiff
path: root/src/model/SportModel.cpp
diff options
context:
space:
mode:
authorOrangerot <purple@orangerot.dev>2024-08-16 23:40:38 +0200
committerOrangerot <purple@orangerot.dev>2024-08-16 23:40:38 +0200
commitb93da90caecc1f7c5ab5c187f508af4d9ceac070 (patch)
treeadf8f10708ea066584989cad2605f80d7e3d8c2f /src/model/SportModel.cpp
parent100e73ec28dbc1f307c540cbd4b5a04dfe5922f8 (diff)
fix(EventInfoPage): show comptitor statisticssteru-backend
Diffstat (limited to 'src/model/SportModel.cpp')
-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 b393498..6b71b88 100644
--- a/src/model/SportModel.cpp
+++ b/src/model/SportModel.cpp
@@ -100,9 +100,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();