From e963997f820ba4b2701855df7d9e6fd707f4671a Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 11 Feb 2012 16:12:02 +0100 Subject: [PATCH] Minor hack for the new database structure. --- bigscreen/fetch_max_score_for_players.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bigscreen/fetch_max_score_for_players.cpp b/bigscreen/fetch_max_score_for_players.cpp index 0b41055..fc256cb 100644 --- a/bigscreen/fetch_max_score_for_players.cpp +++ b/bigscreen/fetch_max_score_for_players.cpp @@ -13,7 +13,7 @@ void FetchMaxScoreForPlayers::operator() (pqxx::transaction<> &t) for (pqxx::result::const_iterator i = res.begin(); i != res.end(); ++i) { unsigned player, max_score; - player = i["player"].as(player); + player = i["song"].as(player); max_score = i["max_score"].as(max_score); scores->insert(std::make_pair(player, max_score)); -- 2.39.2