From 1d2cf89fddb9c07cdd53024f5c25c1926b0cbd9d Mon Sep 17 00:00:00 2001 From: qubitsu Date: Sun, 5 Jan 2014 09:50:20 -0800 Subject: [PATCH] fix to duplicate column name: tz bug 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. --- remind.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/remind.py b/remind.py index 36a9642fe4..9fbb3fb8bc 100644 --- a/remind.py +++ b/remind.py @@ -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)