thedod / feed2twister

Simple cron script to post RSS/ATOM items to Twister
GNU General Public License v3.0
10 stars 4 forks source link

first try at using twister url shortening. #14

Closed black-puppydog closed 3 years ago

black-puppydog commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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" notifications@github.com 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: https://github.com/thedod/feed2twister/pull/14#issuecomment-203718195

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