]> git.sesse.net Git - ccbs/commitdiff
Minor hack for the new database structure.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 11 Feb 2012 15:12:02 +0000 (16:12 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 11 Feb 2012 15:12:02 +0000 (16:12 +0100)
bigscreen/fetch_max_score_for_players.cpp

index 0b41055cb0f51b064e7b1ed3969156e10fc063bb..fc256cbae770782349b96a65577b010ea23ec106 100644 (file)
@@ -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));