Artifact f10669f8a12e371823cd82a5731228d0fe2657baa55db16b9f0564ce3d37f83f:
- File
stackexchange-favs-to-pinboard.rb
— part of check-in
[09c6947036]
at
2017-03-12 14:54:59
on branch master
— Make this actually work for lots of favs
Don't know if somehting changed or this was just always semi-broken
(probable), but noticed today it wasn't adding any new favs when I knew
for a fact I had some; Perhaps, also, I have a lot more favs than when I
first wrote this.Previously this assumed that the response returned all favs for a site
whereas actually by default it returns just 30. Perhaps by luck I'd been
picking up new ones because of using "sort=activity"; a strange choice
on it's own as if I'd used "sort=added" and run this fairly regularly
perhaps I'd never had noticed any issue? Anyway, now it does the correct
thing which is pull 100 at a time and look for the has_more parameter in
what is returned so it knows whether it needs to fetch another page.This does mean get_favs now returns an array of items (makes more sense)
than the actual encompassing response as it used to. (user: base@atomicules.co.uk size: 4010)
A hex dump of this file is not available. Please download the raw binary file and generate a hex dump yourself.