Skip to content

Commit

Permalink
added comment for skipping 2014 cpi data
Browse files Browse the repository at this point in the history
  • Loading branch information
econchick committed Feb 10, 2014
1 parent c46d1cc commit 4372351
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apis/platform_pricing.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
data and Web API). Here we generate a bar chart containing video game consoles
of multiple generations and their respective prices.
We use the API provided by Giantbomb.com as a data source for the available
We use the API provided by Giantbomb.com as a data source for the available
video game platforms. Since prices there are only stored in the amount of money
you had to put on the table back when the console was released, we also want
to put those prices into perspective with the current value of the US Dollar.
Expand All @@ -27,7 +27,6 @@
from __future__ import print_function

import argparse
import datetime
import logging
import os

Expand Down Expand Up @@ -144,6 +143,7 @@ def get_adjusted_price(self, price, year, current_year=None):
This essentially is the calculated inflation for an item.
"""
# Currently there is no CPI data for 2014
if current_year is None or current_year > 2013:
current_year = 2013

Expand Down

0 comments on commit 4372351

Please sign in to comment.