Allow negative bonus
This commit is contained in:
parent
aa3b69f5b3
commit
b38f15b0b6
@ -203,7 +203,7 @@ sub grades_new_bonus
|
|||||||
|
|
||||||
for my $line (@lines)
|
for my $line (@lines)
|
||||||
{
|
{
|
||||||
if ($line =~ /^([a-z0-9_-]+)(?:\s*:\s*([0-9.]+))?$/)
|
if ($line =~ /^([a-z0-9_-]+)(?:\s*:\s*(-?[0-9.]+))?$/)
|
||||||
{
|
{
|
||||||
my $login = $1;
|
my $login = $1;
|
||||||
my $tvalue = $2 // $value;
|
my $tvalue = $2 // $value;
|
||||||
|
Reference in New Issue
Block a user