Skip to content

Commit

Permalink
Don't hard-code the session ID
Browse files Browse the repository at this point in the history
  • Loading branch information
waldoj committed Jan 3, 2024
1 parent da42320 commit 595a727
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cron/legislators.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
/*
* Get senators. Their Senate ID (e.g., "S100") is the key, their name is the value.
*/
$html = get_content('https://lis.virginia.gov/241/mbr/MBR.HTM');
$html = get_content('https://lis.virginia.gov/' . SESSION_LIS_ID . '/mbr/MBR.HTM');
if ($html == false)
{
$log->put('Could not load Senate listing. Abandoning efforts.', 5);
Expand Down

0 comments on commit 595a727

Please sign in to comment.