8000 Project tags lost on pagination · Issue #304 · zooniverse/panoptes-python-client · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Project tags lost on pagination #304

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

Open
adammcmaster opened this issue Dec 6, 2023 · 0 comments
Open

Project tags lost on pagination #304

adammcmaster opened this issue Dec 6, 2023 · 0 comments

Comments

@adammcmaster
Copy link
Contributor

This is probably a wider issue affecting the ResultPaginator in other cases, but unfortunately I don't have time to debug it any further myself.

When paging through projects, the client drops the tags argument when it requests subsequent pages:

import os

os.environ['PANOPTES_DEBUG'] = 'True'

from panoptes_client import Project

ps = Project.where(tags='astronomy', launch_approved='true')
for p in ps:
    print(p.display_name)
DEBUG:panoptes_client:params={'tags': 'astronomy', 'launch_approved': 'true'}
DEBUG:redo:attempt 1/5
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): www.zooniverse.org:443
DEBUG:urllib3.connectionpool:[https://www.zooniverse.org:443](https://www.zooniverse.org/) "GET /api/projects?tags=astronomy&launch_approved=true HTTP/1.1" 200 None
DEBUG:redo:attempt 1/1
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): www.zooniverse.org:443
Galaxy Zoo: 3D
SETI Live
Ice Hunters
Planet Four: Terrains
Radio Galaxy Zoo
Andromeda Project
Planet Four Ouroboros
Disk Detective 1.0
Moon Zoo
Asteroid Zoo
Solar Stormwatch
Planet Hunters
Sunspotter
Comet Hunters
Gravity Spy
Poppin' Galaxy
Astronomy Rewind
Milky Way Project
Backyard Worlds: Planet 9
Supernova Hunters
DEBUG:urllib3.connectionpool:[https://www.zooniverse.org:443](https://www.zooniverse.org/) "GET /api/projects?page=2&launch_approved=true HTTP/1.1" 200 None
DEBUG:redo:attempt 1/1
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): www.zooniverse.org:443
Floating Forests v1
Radio Galaxy Zoo
Andromeda Project
Bat Detective
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

1 participant
0