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

Passing in parameter to .get() results in metadata #58

Open
sdxiang opened this issue Jan 20, 2025 · 1 comment
Open

Passing in parameter to .get() results in metadata #58

sdxiang opened this issue Jan 20, 2025 · 1 comment

Comments

@sdxiang
Copy link

sdxiang commented Jan 20, 2025

I was using pyalex to search Authors and wanted to report some unexpected behavior: Passing in any non-empty string, list, dict, or nonzero int into .get() in the context of Authors.search().get() results in the "meta" field being returned along with the search results. I'm not sure if this also happens with methods other than search().

@thomaswolgast
Copy link

See: https://github.com/J535D165/pyalex/blob/main/pyalex/api.py#L348.

The observed behavior happens because you set return_meta to True by passing parameters that are interpreted as True. So this is not really unexpected behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants