From dca74c094f4558fcd88a729475d8032d916cb11d Mon Sep 17 00:00:00 2001 From: Douglas Perkins Date: Mon, 8 Sep 2014 11:20:00 +0900 Subject: [PATCH] Fixing lstrip bug. --- PumpTweet.py | 3 ++- README.md | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/PumpTweet.py b/PumpTweet.py index 35f395a..2c4267e 100644 --- a/PumpTweet.py +++ b/PumpTweet.py @@ -59,7 +59,8 @@ def get_new_activities(testing=False): if obj.deleted: break # Omit posts written by others and then shared. - note_author = obj.author.id.lstrip('acct:') + note_author = obj.author.id[len('acct:'):] + if note_author != __pump_username__: break notes.append(obj) diff --git a/README.md b/README.md index 6f95fab..40ee782 100644 --- a/README.md +++ b/README.md @@ -188,3 +188,9 @@ If you're trying to modify the script or track down some other error, you might For the (very short) command line help documentation, use this command. (PumpTweet) $ python PumpTweet.py --help + + +Thanks +====== + +The `pump.io` community at large has helped advertise this project. Thanks to `diocles` for some bug reports and patches.