From: Steinar H. Gunderson Date: Sat, 11 Feb 2012 15:12:02 +0000 (+0100) Subject: Minor hack for the new database structure. X-Git-Url: https://git.sesse.net/?p=ccbs;a=commitdiff_plain;h=e963997f820ba4b2701855df7d9e6fd707f4671a Minor hack for the new database structure. --- 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));