Skip to content

Commit

Permalink
reddit: rename to reddit2org
Browse files Browse the repository at this point in the history
  • Loading branch information
karlicoss committed Jun 5, 2020
1 parent 7eb1797 commit 85b1149
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/reddit.py → modules/reddit2org.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
"""
Better interface for reading saved reddit posts/comments
"""
from orger import InteractiveView
from orger import Mirror
from orger.inorganic import node, link
from orger.common import dt_heading

from my.reddit import saved

class RedditView(InteractiveView):

class RedditView(Mirror):
def get_items(self):
for s in saved():
yield s.sid, node(
Expand All @@ -21,6 +22,7 @@ def get_items(self):
body=s.text,
)

# todo this could be generic, i.e. checking all urls?
def is_dead_url(self, url: str) -> bool:
assert self.cmdline_args is not None
if not self.cmdline_args.mark_dead:
Expand Down

0 comments on commit 85b1149

Please sign in to comment.