Skip to content

Commit

Permalink
updated site to reflect the skipping of 2014
Browse files Browse the repository at this point in the history
  • Loading branch information
econchick committed Feb 10, 2014
1 parent 4372351 commit 045415a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions website/_posts/APIs/2013-02-05-Part-1-Setup-raw-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,9 @@ def get_adjusted_price(self, price, year, current_year=None):
This essentially is the calculated inflation for an item.
"""
if current_year is None:
current_year = datetime.datetime.now().year
# Currently there is no CPI data for 2014
if current_year is None or current_year > 2013:
current_year = 2013
# If our data range doesn't provide a CPI for the given year, use
# the edge data.
if year < self.first_year:
Expand Down

0 comments on commit 045415a

Please sign in to comment.