X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=bigscreen%2Ffetch_group.cpp;h=6411525ba4f5f49eb9665a5ddd2b4d0ba1c3ac05;hb=59ec2de58b1a4d904a71bce150d389a700c0f954;hp=7962897ca328a7eb9a7f2fae5a04ebfe873d03e6;hpb=20b9ea1a0a1d6f43af9fadeea1ad30aa2304b778;p=ccbs diff --git a/bigscreen/fetch_group.cpp b/bigscreen/fetch_group.cpp index 7962897..6411525 100644 --- a/bigscreen/fetch_group.cpp +++ b/bigscreen/fetch_group.cpp @@ -39,8 +39,8 @@ void FetchGroup::operator() (pqxx::transaction<> &t) so.id = -1; } else { so.id = i["song"].as(so.id); - so.title = i["song"].as(so.title); - so.artist = i["song"].as(so.artist); + so.title = i["title"].as(so.title); + so.artist = i["artist"].as(so.artist); } sc.song = so; @@ -52,8 +52,6 @@ void FetchGroup::operator() (pqxx::transaction<> &t) sc.score = i["score"].as(sc.score); } - std::printf("score: %u\n", sc.score); - curr_group.players[curr_group.players.size() - 1].scores.push_back(sc); } }