Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

return a GetPersonResponseViewModel #6

Open
github-actions bot opened this issue Dec 19, 2023 · 0 comments
Open

return a GetPersonResponseViewModel #6

github-actions bot opened this issue Dec 19, 2023 · 0 comments
Assignees
Labels

Comments

@github-actions
Copy link

https://github.com/LemmyWorld/lemmy-lib/blob/7b803d553329c65a7464f78f02c658e88a1ae310/lemmylib/lib.py#L247

        if person_id is None and username is None:
            raise Exception("LemmyLib: Either person_id or username must be set")

        response = self.call_api(LemmyApiMethod.GET, f'person', params={'person_id': person_id, 'username': username})
        if response is None:
            return None
        # TODO return a GetPersonResponseViewModel

    def get_community(self, community_id: int | None = None, name: str | None = None):
        self._logger.debug("LemmyLib get_community")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant