Skip to content

Commit

Permalink
fix issue sc3#367; set prior days search window to 13 days in the past
Browse files Browse the repository at this point in the history
  • Loading branch information
bepetersn committed May 10, 2014
1 parent 0ab2f2e commit 5463ae0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scraper/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from utils import ONE_DAY


NEW_INMATE_SEARCH_WINDOW_SIZE = 5
NEW_INMATE_SEARCH_WINDOW_SIZE = 13


class Controller:
Expand Down Expand Up @@ -102,8 +102,7 @@ def _find_missing_inmates(self):
def _find_new_inmates(self):
end_index = self._end_index_active_inmate_ids_in_search_window()
self._search_commands.find_inmates(exclude_list=self._active_inmate_ids[0:end_index],
start_date=self._today - ONE_DAY * (NEW_INMATE_SEARCH_WINDOW_SIZE + 1))

l
def _known_inmates(self):
self._inmates.known_inmates_ids_starting_with(self.inmates_response_q, self._start_date_missing_inmates)
self._retrieve_inmates_response(self._RECEIVED_KNOWN_INMATES_COMMAND)
Expand Down

0 comments on commit 5463ae0

Please sign in to comment.