Skip to content
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

first try at using twister url shortening. #14

Closed
wants to merge 1 commit into from

Conversation

black-puppydog
Copy link

if someone could please verify...
I tried this on a newly created account (@omg_ubuntu) and it worked.
Actually I accidentally posted everything multipln times... :P
So maybe this is really all there is to it and this closes #12
I am still a bit unhappy about the get_next_k() function but don't see how to do it better.
And I don't get why @homlett's script does this:

for i in range(len(lastUserPost)):
        if lastUserPost[i]["userpost"]["n"] == myUsername:
                lastK = int(lastUserPost[i]["userpost"]["k"])
                break

@homlett
Copy link

homlett commented Mar 31, 2016

And I don't get why @homlett's script does this:

for i in range(len(lastUserPost)):
        if lastUserPost[i]["userpost"]["n"] == myUsername:
                lastK = int(lastUserPost[i]["userpost"]["k"])
                break

Nobody knows... I've patched my code. Thanks!

@black-puppydog
Copy link
Author

Dammit I had hoped for an explanation followed by a better solution to next_k. :P
Oh well...

On 31 March 2016 04:14:23 CEST, "H o ʍ l e t t" [email protected] wrote:

And I don't get why @homlett's script does this:

for i in range(len(lastUserPost)):
        if lastUserPost[i]["userpost"]["n"] == myUsername:
                lastK = int(lastUserPost[i]["userpost"]["k"])
                break

Nobody knows... I've patched my code. Thanks!


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#14 (comment)

Sent from my Android device with K-9 Mail. Please excuse my brevity.

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

Successfully merging this pull request may close these issues.

provide link shortening with twister's own link shortener
2 participants