exists $thing{columns} ? (columns => $thing{columns}) : (),
});
my @thing = map +{rs => $_, $_->get_columns}, $rs->all;
exists $thing{columns} ? (columns => $thing{columns}) : (),
});
my @thing = map +{rs => $_, $_->get_columns}, $rs->all;
@thing = grep { $thing{choose}->() } @thing if exists $thing{choose};
@thing = sort { $thing{sortby}->() } @thing if exists $thing{sortby};
$thing{group} //= sub { $thing{id} };
@thing = grep { $thing{choose}->() } @thing if exists $thing{choose};
@thing = sort { $thing{sortby}->() } @thing if exists $thing{sortby};
$thing{group} //= sub { $thing{id} };
my %thing = %$thing;
debug $env => "Rsname is $thing{rsname} and id is $id";
my %params = map {+ rs => $_, $_->get_columns } db($env)->resultset($thing{rsname})->find($id);
my %thing = %$thing;
debug $env => "Rsname is $thing{rsname} and id is $id";
my %params = map {+ rs => $_, $_->get_columns } db($env)->resultset($thing{rsname})->find($id);
$_->{results} &&= decode_json $_->{results};
$_->{owner_name} = $_->{rs}->owner->name;
$_->{problem_name} = $_->{rs}->problem->name;
$_->{size} = length $_->{source};
delete $_->{source};
$_->{results} &&= decode_json $_->{results};
$_->{owner_name} = $_->{rs}->owner->name;
$_->{problem_name} = $_->{rs}->problem->name;
$_->{size} = length $_->{source};
delete $_->{source};
}
};
putsym 'Gruntmaster::Page::Pb::Entry::vary', sub { 'Authorization' };
putsym 'Gruntmaster::Page::Pb::Entry::max_age', sub { 600 };
}
};
putsym 'Gruntmaster::Page::Pb::Entry::vary', sub { 'Authorization' };
putsym 'Gruntmaster::Page::Pb::Entry::max_age', sub { 600 };