Format
This commit is contained in:
parent
bec21ff3e0
commit
a0dd7dd174
46 changed files with 138 additions and 139 deletions
|
@ -8,12 +8,8 @@ use base 'DBIx::Class::ResultSet';
|
|||
sub as_hash {
|
||||
my ($self) = @_;
|
||||
|
||||
my %category_list = (
|
||||
(
|
||||
map { $_->id => $_->name, } $self->all
|
||||
),
|
||||
0 => 'Uncategorised',
|
||||
);
|
||||
my %category_list =
|
||||
( ( map { $_->id => $_->name, } $self->all ), 0 => 'Uncategorised', );
|
||||
return \%category_list;
|
||||
}
|
||||
|
||||
|
@ -21,9 +17,7 @@ sub as_hash_name_icon {
|
|||
my ($self) = @_;
|
||||
|
||||
my %category_list = (
|
||||
(
|
||||
map { $_->name => $_->line_icon, } $self->all
|
||||
),
|
||||
( map { $_->name => $_->line_icon, } $self->all ),
|
||||
0 => 'Uncategorised',
|
||||
);
|
||||
return \%category_list;
|
||||
|
|
|
@ -39,7 +39,7 @@ sub _unordered_get_values {
|
|||
}
|
||||
|
||||
sub get_users {
|
||||
my ($self, $set_id) = @_;
|
||||
my ( $self, $set_id ) = @_;
|
||||
|
||||
return $self->_unordered_get_values($set_id)->search(
|
||||
{},
|
||||
|
|
|
@ -92,7 +92,7 @@ sub recalculate_all {
|
|||
warn "Unrecognised Set";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -107,7 +107,7 @@ sub _recalculate_leaderboard {
|
|||
$lb_result->create_new($date);
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue