Closed projectdelphai closed 10 years ago
Hey thanks for the pull request! And welcome.
Quick question - are you parsing the user's wiki page to get their total delta count? If you are, a much easier way to get the total is to just look at their current flair text.
Something like this:
flair_text = self.subreddit.get_flair(topscores[i]['user']) # ex "20∆"
total_deltas = int(flair[:-1]) # remove the delta
If I misunderstood your code, then ignore this!
Yeah, the user wiki pages are often inaccurate due to various bugs. If you're using flair text then it's all good.
And thank you for doing this :)
Alright, so I changed the code to reflect that flair text. You're right in that it makes much more sense this way.
This is hopefully a fix for #62. It's my first pull request to this project and I didn't really have a way to test it that I knew of, so let me know if I screwed anything up. Thanks!