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

Commit 835c6ba

Browse files
committed
Merge pull request #140 from LazyChild/develop
Fix for the challengeName column in member marathon statistics API.
2 parents 3292e7c + daf59d1 commit 835c6ba

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

queries/get_member_marathon_statistics_history

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
SELECT
22
rr.round_id AS challenge_id
3-
, r.short_name
3+
, r.short_name AS challenge_name
44
, to_char(cal.date, '%Y.%m.%d') AS date
55
, NVL(rr.new_rating, rr.old_rating) AS rating
66
, crh.rank AS placement

test/test_files/expected_marathon_member_stats_1.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,41 +21,47 @@
2121
"History": [
2222
{
2323
"challengeId": 15801,
24+
"challengeName": "TCO13 Championship Round",
2425
"date": "2013.11.11",
2526
"rating": 1500,
2627
"placement": 6,
2728
"percentile": "80.08%"
2829
},
2930
{
3031
"challengeId": 100004,
32+
"challengeName": "Marathon Match 79",
3133
"date": "2013.11.11",
3234
"rating": 800,
3335
"placement": 2,
3436
"percentile": "54.25%"
3537
},
3638
{
3739
"challengeId": 100001,
40+
"challengeName": "Marathon Match 81",
3841
"date": "2013.11.11",
3942
"rating": 2183,
4043
"placement": 5,
4144
"percentile": "78.34%"
4245
},
4346
{
4447
"challengeId": 100002,
48+
"challengeName": "Marathon Match 80",
4549
"date": "2013.11.11",
4650
"rating": 1300,
4751
"placement": 4,
4852
"percentile": "12.45%"
4953
},
5054
{
5155
"challengeId": 100005,
56+
"challengeName": "2013 TCO Marathon Round 1",
5257
"date": "2013.11.11",
5358
"rating": 1200,
5459
"placement": 1,
5560
"percentile": "90.00%"
5661
},
5762
{
5863
"challengeId": 100003,
64+
"challengeName": "2013 TCO Marathon Round 2",
5965
"date": "2013.11.11",
6066
"rating": 2345,
6167
"placement": 3,

test/test_files/expected_marathon_member_stats_2.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,41 +21,47 @@
2121
"History": [
2222
{
2323
"challengeId": 15801,
24+
"challengeName": "TCO13 Championship Round",
2425
"date": "2013.11.11",
2526
"rating": 1500,
2627
"placement": 6,
2728
"percentile": "80.08%"
2829
},
2930
{
3031
"challengeId": 100004,
32+
"challengeName": "Marathon Match 79",
3133
"date": "2013.11.11",
3234
"rating": 800,
3335
"placement": 2,
3436
"percentile": "54.25%"
3537
},
3638
{
3739
"challengeId": 100001,
40+
"challengeName": "Marathon Match 81",
3841
"date": "2013.11.11",
3942
"rating": 2183,
4043
"placement": 5,
4144
"percentile": "78.34%"
4245
},
4346
{
4447
"challengeId": 100002,
48+
"challengeName": "Marathon Match 80",
4549
"date": "2013.11.11",
4650
"rating": 1300,
4751
"placement": 4,
4852
"percentile": "12.45%"
4953
},
5054
{
5155
"challengeId": 100005,
56+
"challengeName": "2013 TCO Marathon Round 1",
5257
"date": "2013.11.11",
5358
"rating": 1200,
5459
"placement": 1,
5560
"percentile": "90.00%"
5661
},
5762
{
5863
"challengeId": 100003,
64+
"challengeName": "2013 TCO Marathon Round 2",
5965
"date": "2013.11.11",
6066
"rating": 2345,
6167
"placement": 3,
@@ -181,4 +187,3 @@
181187
}
182188
]
183189
}
184-

0 commit comments

Comments
 (0)