summaryrefslogtreecommitdiff
path: root/src/model/Competitor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/Competitor.cpp')
-rw-r--r--src/model/Competitor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/model/Competitor.cpp b/src/model/Competitor.cpp
index a5d2e69..d39d134 100644
--- a/src/model/Competitor.cpp
+++ b/src/model/Competitor.cpp
@@ -8,7 +8,7 @@ bool Competitor::setCompetitor(const QJsonObject &competitor) {
throw invalid_argument("Not a competitor object.");
}
- this->code = competitor["code"].toString();
+ this->code = competitor["code"].toInt();
this->name = competitor["name"].toString();
this->noc = competitor["noc"].toString();
return true;