fabiobatalha / crossrefapi

A python library that implements the Crossref API.
BSD 2-Clause "Simplified" License
280 stars 44 forks source link

sample doesn't work with filters #3

Closed gbilder closed 7 years ago

gbilder commented 7 years ago

Great library. But just discovered that sample doesn't work when combined with a filter.

w = Works().filter(type='journal-article').sample(5).url
w

returns

'https://api.crossref.org/works?sample=5'

Would expect something like this:

http://api.crossref.org/works?filter=type:journal-article&sample=5