def ensure(cls, guild, user, reason=None): User.ensure(user) obj, _ = cls.get_or_create(guild_id=guild.id, user_id=user.id, defaults=dict({ 'reason': reason, })) return obj
def ensure(cls, guild, user, reason=None): from rowboat.models.user import User User.ensure(user) obj, _ = cls.get_or_create(guild_id=guild.id, user_id=user.id, defaults=dict({ 'reason': reason, })) return obj