Skip to content

Commit

Permalink
Merge pull request #19 from DankCity/update-praw-version
Browse files Browse the repository at this point in the history
Update PRAW version and __str__/__repr__ methods
  • Loading branch information
levi-rs authored Oct 25, 2017
2 parents 58c5dd9 + 23a8259 commit 99a1bdb
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
13 changes: 9 additions & 4 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
CHANGES
=======

0.1.3
-----

* Add CLI flags

0.1.2
-----

Expand All @@ -16,6 +21,10 @@ CHANGES

* Update classifiers for beta release
* Fix timestamping

0.0.9
-----

* Fix setup.cfg formatting

0.0.8
Expand All @@ -39,10 +48,6 @@ CHANGES

* Switch back to master branch for deploy
* Add support for tracking Reddit Submissions

0.0.3
-----

* Re-do password in .travis.yml

0.0.2
Expand Down
2 changes: 1 addition & 1 deletion recho/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def main():
last_seen = _get_last_seen(args.redditor, args.timestamp_file)

# Get new comments and threads from reddit
new_posts = get_reddit_posts_since(args.redditor, last_seen)
new_posts = get_reddit_posts_since(args.redditor, last_seen)[:5]

if new_posts:
# Post new comments and threads to slack
Expand Down
4 changes: 2 additions & 2 deletions recho/reddit.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ def __getattr__(self, name):
return getattr(self._obj, name)

def __str__(self):
return str(self)
return repr(self)

def __repr__(self):
return "{0} -> {1}".format(self._obj.id, str(self))
return "{0} -> {1}".format(self._obj.id, str(self._obj)[:30])


class RedditComment(RedditBase):
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
configparser==3.5.0
pbr>=2.0
praw==3.6.0
praw==3.6.1
retry
raven
slacker==0.9.30

0 comments on commit 99a1bdb

Please sign in to comment.