Skip to content

Commit

Permalink
Merge pull request #261 from MalloyDelacroix/fix_content_export
Browse files Browse the repository at this point in the history
Fix content export
  • Loading branch information
MalloyDelacroix authored Jan 4, 2022
2 parents 5040c8f + 96037ea commit e2547a6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGE_LOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Change Log


## v3.13.1

### Bug Fixes
* Fix crashing that occurred when attempting a json export failed content list from database dialog.


## v3.13.0

### We are out of beta!
Expand Down
2 changes: 2 additions & 0 deletions DownloaderForReddit/utils/exporters/json_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,11 +327,13 @@ def export_posts_to_json(post_list, file_path, nested=False):


def export_content_to_json(content_list, file_path, nested=False):
content_list = list(content_list)
encoder = NestedJSONContentEncoder if nested else SimpleJSONContentEncoder
_export(ContentCollection(content_list), file_path, encoder)


def export_comments_to_json(comment_list, file_path, nested=False):
comment_list = list(comment_list)
encoder = NestedJSONCommentEncoder if nested else SimpleJSONCommentEncoder
_export(CommentCollection(comment_list), file_path, encoder)

Expand Down
2 changes: 1 addition & 1 deletion DownloaderForReddit/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = 'v3.13.0'
__version__ = 'v3.13.1'


def get_major_version():
Expand Down

0 comments on commit e2547a6

Please sign in to comment.