fathomnet / fathomnet-py

FathomNet Python client
https://fathomnet-py.readthedocs.io
MIT License
24 stars 3 forks source link

Filter by user counts 0 #1

Closed eor314 closed 2 years ago

eor314 commented 2 years ago

api.imagescount_by_submitter and api.images.find_by_contributors_email exhibiting weird behavior. When querying by @hohonuuli 's email, they return the 66039 images submitted. When filtering by @BGWoodward 's email, count returns 0 and no AImageDTO objects returned by find.

hohonuuli commented 2 years ago

Actually, it's probably working right. I hacked in a a workaround for Ben to display the images as NOAA. Details at https://sharing.clickup.com/t/h/1kaa694/NHEUAL7QJOYV139

hohonuuli commented 2 years ago

Try running your search with the fake email: benjamin.woodward@noaa.gov

kevinsbarnard commented 2 years ago

Try running your search with the fake email: benjamin.woodward@noaa.gov

Confirmed working.

>>> import fathomnet.api.images
>>> fathomnet.api.images.count_by_submitter('benjamin.woodward@noaa.gov'')
ByContributorCount(contributorsEmail='benjamin.woodward@noaa.gov', count=2866)
>>> fathomnet.api.images.find_by_contributors_email('')
2866