@classmethod<EOL><INDENT>def get(cls, community_id, with_deleted=False):<DEDENT>
q = cls.query.filter_by(id=community_id)<EOL>if not with_deleted:<EOL><INDENT>q = q.filter(cls.deleted_at.is_(None))<EOL><DEDENT>return q.one_or_none()<EOL>
Get a community.