Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Fix for the challengeName column in member marathon statistics API. #140

Merged
merged 1 commit into from
Mar 21, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion queries/get_member_marathon_statistics_history
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SELECT
rr.round_id AS challenge_id
, r.short_name
, r.short_name AS challenge_name
, to_char(cal.date, '%Y.%m.%d') AS date
, NVL(rr.new_rating, rr.old_rating) AS rating
, crh.rank AS placement
Expand Down
6 changes: 6 additions & 0 deletions test/test_files/expected_marathon_member_stats_1.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,41 +21,47 @@
"History": [
{
"challengeId": 15801,
"challengeName": "TCO13 Championship Round",
"date": "2013.11.11",
"rating": 1500,
"placement": 6,
"percentile": "80.08%"
},
{
"challengeId": 100004,
"challengeName": "Marathon Match 79",
"date": "2013.11.11",
"rating": 800,
"placement": 2,
"percentile": "54.25%"
},
{
"challengeId": 100001,
"challengeName": "Marathon Match 81",
"date": "2013.11.11",
"rating": 2183,
"placement": 5,
"percentile": "78.34%"
},
{
"challengeId": 100002,
"challengeName": "Marathon Match 80",
"date": "2013.11.11",
"rating": 1300,
"placement": 4,
"percentile": "12.45%"
},
{
"challengeId": 100005,
"challengeName": "2013 TCO Marathon Round 1",
"date": "2013.11.11",
"rating": 1200,
"placement": 1,
"percentile": "90.00%"
},
{
"challengeId": 100003,
"challengeName": "2013 TCO Marathon Round 2",
"date": "2013.11.11",
"rating": 2345,
"placement": 3,
Expand Down
7 changes: 6 additions & 1 deletion test/test_files/expected_marathon_member_stats_2.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,41 +21,47 @@
"History": [
{
"challengeId": 15801,
"challengeName": "TCO13 Championship Round",
"date": "2013.11.11",
"rating": 1500,
"placement": 6,
"percentile": "80.08%"
},
{
"challengeId": 100004,
"challengeName": "Marathon Match 79",
"date": "2013.11.11",
"rating": 800,
"placement": 2,
"percentile": "54.25%"
},
{
"challengeId": 100001,
"challengeName": "Marathon Match 81",
"date": "2013.11.11",
"rating": 2183,
"placement": 5,
"percentile": "78.34%"
},
{
"challengeId": 100002,
"challengeName": "Marathon Match 80",
"date": "2013.11.11",
"rating": 1300,
"placement": 4,
"percentile": "12.45%"
},
{
"challengeId": 100005,
"challengeName": "2013 TCO Marathon Round 1",
"date": "2013.11.11",
"rating": 1200,
"placement": 1,
"percentile": "90.00%"
},
{
"challengeId": 100003,
"challengeName": "2013 TCO Marathon Round 2",
"date": "2013.11.11",
"rating": 2345,
"placement": 3,
Expand Down Expand Up @@ -181,4 +187,3 @@
}
]
}