From daf59d1d1436db4eddeab84ce23b151399e83a61 Mon Sep 17 00:00:00 2001 From: Renyu Liu Date: Fri, 21 Mar 2014 19:12:05 +0800 Subject: [PATCH] Fix for the challengeName column in member marathon statistics API. --- queries/get_member_marathon_statistics_history | 2 +- test/test_files/expected_marathon_member_stats_1.json | 6 ++++++ test/test_files/expected_marathon_member_stats_2.json | 7 ++++++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/queries/get_member_marathon_statistics_history b/queries/get_member_marathon_statistics_history index bbdb83990..524c3882a 100644 --- a/queries/get_member_marathon_statistics_history +++ b/queries/get_member_marathon_statistics_history @@ -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 diff --git a/test/test_files/expected_marathon_member_stats_1.json b/test/test_files/expected_marathon_member_stats_1.json index bd76859bb..721b9634e 100644 --- a/test/test_files/expected_marathon_member_stats_1.json +++ b/test/test_files/expected_marathon_member_stats_1.json @@ -21,6 +21,7 @@ "History": [ { "challengeId": 15801, + "challengeName": "TCO13 Championship Round", "date": "2013.11.11", "rating": 1500, "placement": 6, @@ -28,6 +29,7 @@ }, { "challengeId": 100004, + "challengeName": "Marathon Match 79", "date": "2013.11.11", "rating": 800, "placement": 2, @@ -35,6 +37,7 @@ }, { "challengeId": 100001, + "challengeName": "Marathon Match 81", "date": "2013.11.11", "rating": 2183, "placement": 5, @@ -42,6 +45,7 @@ }, { "challengeId": 100002, + "challengeName": "Marathon Match 80", "date": "2013.11.11", "rating": 1300, "placement": 4, @@ -49,6 +53,7 @@ }, { "challengeId": 100005, + "challengeName": "2013 TCO Marathon Round 1", "date": "2013.11.11", "rating": 1200, "placement": 1, @@ -56,6 +61,7 @@ }, { "challengeId": 100003, + "challengeName": "2013 TCO Marathon Round 2", "date": "2013.11.11", "rating": 2345, "placement": 3, diff --git a/test/test_files/expected_marathon_member_stats_2.json b/test/test_files/expected_marathon_member_stats_2.json index bcde29e91..82bd2b52e 100644 --- a/test/test_files/expected_marathon_member_stats_2.json +++ b/test/test_files/expected_marathon_member_stats_2.json @@ -21,6 +21,7 @@ "History": [ { "challengeId": 15801, + "challengeName": "TCO13 Championship Round", "date": "2013.11.11", "rating": 1500, "placement": 6, @@ -28,6 +29,7 @@ }, { "challengeId": 100004, + "challengeName": "Marathon Match 79", "date": "2013.11.11", "rating": 800, "placement": 2, @@ -35,6 +37,7 @@ }, { "challengeId": 100001, + "challengeName": "Marathon Match 81", "date": "2013.11.11", "rating": 2183, "placement": 5, @@ -42,6 +45,7 @@ }, { "challengeId": 100002, + "challengeName": "Marathon Match 80", "date": "2013.11.11", "rating": 1300, "placement": 4, @@ -49,6 +53,7 @@ }, { "challengeId": 100005, + "challengeName": "2013 TCO Marathon Round 1", "date": "2013.11.11", "rating": 1200, "placement": 1, @@ -56,6 +61,7 @@ }, { "challengeId": 100003, + "challengeName": "2013 TCO Marathon Round 2", "date": "2013.11.11", "rating": 2345, "placement": 3, @@ -181,4 +187,3 @@ } ] } - pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy