code: def get_by_user(cls, user_id, with_deleted=False):
          
          query = cls.query.filter_by(
              id_user=user_id
          )
          if not with_deleted:
              query = query.filter(cls.deleted_at.is_(None))
  
          return query.order_by(db.asc(Community.title))
docs: Get a community.