Rename option

This commit is contained in:
Serene-Arc
2021-06-12 10:35:31 +10:00
parent e500bc4ad4
commit c5c010bce0
4 changed files with 4 additions and 4 deletions

View File

@@ -61,7 +61,7 @@ class Archiver(RedditConnector):
raise ArchiverError(f'Factory failed to classify item of type {type(praw_item).__name__}')
def write_entry(self, praw_item: (praw.models.Submission, praw.models.Comment)):
if self.args.full_context and isinstance(praw_item, praw.models.Comment):
if self.args.comment_context and isinstance(praw_item, praw.models.Comment):
logger.debug(f'Converting comment {praw_item.id} to submission {praw_item.submission.id}')
praw_item = praw_item.submission
archive_entry = self._pull_lever_entry_factory(praw_item)