X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=bigscreen%2Ffetch_list_of_active_groups.cpp;fp=bigscreen%2Ffetch_list_of_active_groups.cpp;h=c2d587b1a395dd758d4f50207edc5389390594f6;hp=1df67585ce55c94d15816dde7dc3226445173d4d;hb=f40fa6f12fb246c09e925e97bcd7c40f8d2fa59c;hpb=8970b43d021e65f07ed4d279185c5062b4f9ee4a diff --git a/bigscreen/fetch_list_of_active_groups.cpp b/bigscreen/fetch_list_of_active_groups.cpp index 1df6758..c2d587b 100644 --- a/bigscreen/fetch_list_of_active_groups.cpp +++ b/bigscreen/fetch_list_of_active_groups.cpp @@ -1,6 +1,6 @@ #include "fetch_list_of_active_groups.h" -FetchListOfActiveGroups::FetchListOfActiveGroups(std::vector *active) : active(active) {} +FetchListOfActiveGroups::FetchListOfActiveGroups(std::vector *active) : active(active) {} void FetchListOfActiveGroups::operator() (pqxx::transaction<> &t) { // make sure we start with an empty list @@ -8,7 +8,7 @@ void FetchListOfActiveGroups::operator() (pqxx::transaction<> &t) pqxx::result res( t.exec("SELECT * FROM bigscreen.active_groups") ); for (pqxx::result::const_iterator i = res.begin(); i != res.end(); ++i) { - Group g; + SkeletonGroup g; g.tournament = i["tournament"].as(g.tournament); g.round = i["round"].as(g.round);