diff --git a/scripts/send-t-shirts.plx b/scripts/send-t-shirts.plx index 977b73a..e423f6a 100644 --- a/scripts/send-t-shirts.plx +++ b/scripts/send-t-shirts.plx @@ -43,7 +43,7 @@ close TEX_FILE; foreach my $id (sort keys %idsSent) { my $request; foreach my $type (qw/t-shirt-0 t-shirt-1/) { - $request = $sp->getRequest({ donorId => $id, requestType => 't-shirt-0', ignoreFulfilledRequests => 1 }); + $request = $sp->getRequest({ donorId => $id, requestType => $type, ignoreFulfilledRequests => 1 }); if (defined $request and defined $request->{requestType}) { if ($request->{requestConfiguration} ne $idsSent{$id}) { my $out = "WARNING: not fufilling $id request for $request->{requstConfiguration} because we sent wrong size of $idsSent{$id}!\n";