Skip to content

Commit

Permalink
[weather] Fix function names in setup function
Browse files Browse the repository at this point in the history
  • Loading branch information
embolalia committed Dec 16, 2012
1 parent 074c0c3 commit d0544a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

def setup(willie):
#Having a db means pref's exists. Later, we can just use `if willie.db`.
if willie.db and not willie.db.preferences.has_column('woeid'):
willie.db.preferences.addcolumns(['woeid'])
if willie.db and not willie.db.preferences.has_columns('woeid'):
willie.db.preferences.add_columns(['woeid'])

def woeid_search(query):
"""
Expand Down

0 comments on commit d0544a9

Please sign in to comment.