Skip to content

Commit

Permalink
fix to duplicate column name: tz bug
Browse files Browse the repository at this point in the history
Willie fails to load remind.py module due to repeat attempt to add column ['tz'] to preferences table in the setup function.

    Error in remind setup procedure: duplicate column name: tz
    (db.py:669)

Changing second add_column to ['time_format'] at line 56 fixes the bug and appears to be the intended behavior.
  • Loading branch information
qubitsu committed Jan 5, 2014
1 parent 3c6e66a commit 1d2cf89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion remind.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def setup(bot):
if bot.db and not bot.db.preferences.has_columns('tz'):
bot.db.preferences.add_columns(['tz'])
if bot.db and not bot.db.preferences.has_columns('time_format'):
bot.db.preferences.add_columns(['tz'])
bot.db.preferences.add_columns(['time_format'])

bot.rfn = filename(bot)
bot.rdb = load_database(bot.rfn)
Expand Down

0 comments on commit 1d2cf89

Please sign in to comment.