Skip to content

Commit

Permalink
Remove double underscore from __fetch_missions_for_range method and…
Browse files Browse the repository at this point in the history
… calls
  • Loading branch information
jtemporal committed Jul 20, 2017
1 parent 4e3234d commit 2aa5b18
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def fetch(self, start_date, end_date):
for r in self._generate_ranges(start_date, end_date):
if os.environ.get('DEBUG') == '1':
print(r)
for record in self.__fetch_missions_for_range(r[0], r[1]):
for record in self._fetch_missions_for_range(r[0], r[1]):
records.append(record)

df = pd.DataFrame(records, columns=[
Expand Down Expand Up @@ -79,7 +79,7 @@ def _generate_ranges(self, start_date, end_date):
)
range_start += timedelta(days=30)

def __fetch_missions_for_range(self, range_start, range_end):
def _fetch_missions_for_range(self, range_start, range_end):
url = self.URL.format(range_start, range_end)
data = urllib.request.urlopen(url)
soup = BeautifulSoup(data, 'html.parser')
Expand Down

0 comments on commit 2aa5b18

Please sign in to comment.