aboutsummaryrefslogtreecommitdiffstats
path: root/subreddit.py
diff options
context:
space:
mode:
Diffstat (limited to 'subreddit.py')
-rwxr-xr-xsubreddit.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/subreddit.py b/subreddit.py
index fc13cb1..3743a8d 100755
--- a/subreddit.py
+++ b/subreddit.py
@@ -46,10 +46,10 @@ def update_users_flair_from_comment(comment):
def update_users_flair(username):
flairtext = next(SUBREDDIT.flair(redditor=username))["flair_text"]
- flairscore = get_lambda_from_flair(flairtext)
if flairtext is None:
flairtext = ""
else:
+ flairscore = get_lambda_from_flair(flairtext)
flairtext = str(flairtext.replace("[%s] " % flairscore, ""))
if username in get_mods():
newflair = "[∞λ] %s" % (flairtext)
@@ -280,7 +280,7 @@ Views|%s
except:
pass
- update_users_flair_from_comment(submission)
+ update_users_flair(str(submission.author))
return text
def main():