def create_table(self, model):
        c = []
        for field in model.__fields__.values():
            c.append(field.sql)
        cursor = self.conn.cursor()
        cursor.execute(
            'create table %s (%s);' % (model.__tablename__, ', '.join(c))
        )
        if not self.__tabledict__.keys() in model.__tablename__:
            self.__tabledict__[model.__tablename__] = model

        self.commit()
dataset/ETHPy150Open jasonlvhit/lunar/lunar/database.py/Sqlite.create_table/swapped operands of `in`