diff options
Diffstat (limited to 'subreddit.py')
-rwxr-xr-x | subreddit.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/subreddit.py b/subreddit.py index eece316..c5c9265 100755 --- a/subreddit.py +++ b/subreddit.py @@ -4,7 +4,7 @@ import database import datetime import logging import ytapi -import graph +# import graph import time import praw import json @@ -217,7 +217,7 @@ def handle_givelambda(comment): def handle_takelambda(comment): try: splitted = comment.body.split() - user = splitted[1].replace("/u/", "") + user = splitted[1].replace("/u/", "").replace("u/", "") toremove = int(splitted[2].replace("\\", "")) reason = " ".join(splitted[3:]) @@ -235,7 +235,7 @@ def handle_takelambda(comment): def handle_refundlambda(comment): try: splitted = comment.body.split() - user = splitted[1].replace("/u/", "") + user = splitted[1].replace("/u/", "").replace("u/", "") toadd = int(splitted[2].replace("\\", "")) reason = " ".join(splitted[3:]) |