From fece5bdb4ae5cc88894d5999f2067acb3fe33678 Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Thu, 20 Oct 2016 11:17:51 -0700 Subject: [PATCH] Bug: this should not use t-shirt-0 every time! I am not sure why this had t-shirt-0 repeated every time, but it can't possibly be right. --- scripts/send-t-shirts.plx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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";