-
Notifications
You must be signed in to change notification settings - Fork 52
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
Follow pagination for >500 emoji #23
Conversation
At some point, Slack started paginating on the export page for teams with huge emoji collections. This means the export process would only detect the 500 emoji on that first page (ordered alphabetically). It now looks to other pages and exports those as well, restoring full functionality. Tested on a team with ~1300 emoji (3 pages).
I'm successfully parsing all 1300 emojis now :) however, I still get this error:
|
fyi I fixed this error by wrapping |
Why isn't upload async? :o |
apart from that looks like everything worked! :) thank you! |
It comes through from the environment variable as a string. Fixes this unhelpful error message: `TypeError: '<' not supported between instances of 'str' and 'int'`
I guess you're using the |
hang on I'm doing bulk upload bahahah, but that was my issue so I'm guessing its fixed! still confused why |
My understanding is that As to why upload isn't async - I haven't bothered! When I added async to export, my home internet could do heaps more than one simultaneous download, but had horrendous upload. This is @smashwilson's project and he already had a perfectly good upload script for my needs 😇 |
Hi @smashwilson, any objection to me merging this on the main branch? |
@d-lord None at all, merge at will 🚀 |
Cheers! ⚡️ |
Hi! A friend mentioned that the export script wasn't catching every emoji any more.
At some point, Slack started paginating on the export page for teams with huge emoji collections.
This means the export process would only detect the 500 emoji on that first page (ordered alphabetically).
It now looks to other pages and exports those as well, restoring full functionality.
Tested on a team with ~1300 emoji (3 pages).
(I've also commented/renamed/added type signatures to methods & ran PyCharm's built-in "optimize imports" to tidy that, hence the changes at the top of the file)