From 5d341f3380b8cdc266aa376c0cc8920805e6b454 Mon Sep 17 00:00:00 2001 From: Matthew Scragg Date: Fri, 4 Oct 2013 16:57:33 -0500 Subject: [PATCH] init db fix --- realms/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/realms/__init__.py b/realms/__init__.py index 8f2ddeb..207be6e 100644 --- a/realms/__init__.py +++ b/realms/__init__.py @@ -52,7 +52,7 @@ def init_db(dbname): if not tbl in rdb.table_list().run(db): rdb.table_create(tbl).run(db) - if not 'name' in rdb.table('users').index_list().run(db): + if not 'name' in rdb.table('sites').index_list().run(db): rdb.table('sites').index_create('name').run(db) for i in ['username', 'email']: