Skip to content

Commit

Permalink
Merge pull request #58 from multnomah-county-it/dev
Browse files Browse the repository at this point in the history
Barcode and alternateID transforms working as intended
  • Loading branch information
john-c-houser authored May 23, 2023
2 parents 567a731 + 6716e56 commit e8b84cf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ingestor.pl
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,6 @@ sub create_student {

# Put student data into the form expected by ILSWS.
my $new_student = &create_data_structure($token, $student, $client);
print Dumper($new_student);

# Convert the data structure into JSON
my $student_json = $json->pretty->encode($new_student);
Expand Down Expand Up @@ -566,7 +565,6 @@ sub update_student {

# Put student data into the form expected by ILSWS.
my $new_student = &create_data_structure($token, $student, $client, $key);
print Dumper($new_student);

# Convert the data structure into JSON
my $student_json = $json->pretty->encode($new_student);
Expand Down Expand Up @@ -932,7 +930,7 @@ sub transform_alternateID {
if ( ref $existing eq ref {} && defined($existing->{'barcode'}) && $existing->{'barcode'} =~ /^\d{14}$/ ) {
$value = $client->{'id'} . $student->{'barcode'};
}

return $value;
}

Expand Down

0 comments on commit e8b84cf

Please sign in to comment.