init db fix

This commit is contained in:
Matthew Scragg 2013-10-04 16:57:33 -05:00
parent 8f66cbdab9
commit 5d341f3380

View file

@ -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']: