Skip to content

Commit

Permalink
Fixing lstrip bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Douglas Perkins committed Sep 8, 2014
1 parent 8daac67 commit dca74c0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PumpTweet.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit dca74c0

Please sign in to comment.