Skip to content

Commit

Permalink
Allow for 0-padded LIS IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
waldoj committed Jan 1, 2024
1 parent 253df65 commit da42320
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cron/legislators.php
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,10 @@
foreach ($known_legislators as $known_legislator)
{

if ($known_legislator->lis_id == $lis_id)
/*
* LIS inconsistently left-pads LIS IDs with 0s, so allow for that possibility
*/
if ( $known_legislator->lis_id == $lis_id || '0' . $known_legislator->lis_id == $lis_id )
{
$match = TRUE;
continue(2);
Expand Down

0 comments on commit da42320

Please sign in to comment.