Skip to content

Commit

Permalink
Only get House members for the current year
Browse files Browse the repository at this point in the history
Toward #32.
  • Loading branch information
waldoj committed Dec 23, 2017
1 parent 4930134 commit 959ac28
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 @@ -51,7 +51,7 @@
/*
* Get delegates. Their House ID (e.g., "H0200") is the key, their name is the value.
*/
$html = get_content('http://virginiageneralassembly.gov/house/members/members.php');
$html = get_content('http://virginiageneralassembly.gov/house/members/members.php?ses=' . SESSION_YEAR);
preg_match_all('/id=\'member\[H([0-9]+)\]\'><td width="190px"><a class="bioOpener" href="#">(.*?)<\/a>/m', $html, $delegates);
$tmp = array();
$i=0;
Expand Down

0 comments on commit 959ac28

Please sign in to comment.