def db_init(db, conn_name):
 global db_ready
 if (db_ready.count(conn_name) < 1):
  db.execute('create table if not exists seen_user(name, time, quote, chan, host, primary key(name, chan))')
  db.commit()
  db_ready.append(conn_name)

def db_init ( db , conn_name ) : global db_ready if ( db_ready . count ( conn_name ) < 1 ) : db . execute ( 'create table if not exists seen_user(name, time, quote, chan, host, primary key(name, chan))' ) db . commit ( ) db_ready . append ( conn_name )
check to see that our db has the the seen table :type db: sqlalchemy .