Skip to content

Commit

Permalink
Update getSoldPrices.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Kooben209 committed Feb 14, 2019
1 parent 99f1225 commit 7bb723c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions getSoldPrices.py
Expand Up @@ -47,6 +47,8 @@ def getAllSoldPrices(currentMonth=SoldDateCutoff):
if os.environ.get("MORPH_DB_ADD_COL") == '1':
cursor.execute('PRAGMA TABLE_INFO(data)')
columns = [tup[1] for tup in cursor.fetchall()]
if 'hashTagLocation' not in columns:
cursor.execute('ALTER TABLE data ADD COLUMN hashTagLocation TEXT')
if 'displaySoldPrice' not in columns:
cursor.execute('ALTER TABLE data ADD COLUMN displaySoldPrice TEXT')
if 'soldPrice' not in columns:
Expand Down

0 comments on commit 7bb723c

Please sign in to comment.