Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix to_json when downloading to file #202

Merged
merged 2 commits into from
Jan 24, 2025
Merged

Fix to_json when downloading to file #202

merged 2 commits into from
Jan 24, 2025

Conversation

VsevolodX
Copy link
Member

No description provided.

@@ -448,6 +448,7 @@ def download_content_to_file(content: Any, filename: str):

if isinstance(content, Material):
content = content.to_json()
content = json.dumps(content, indent=4)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be handled inside the Material class itself

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Created a task for that

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@VsevolodX VsevolodX merged commit fe9850f into dev Jan 24, 2025
4 checks passed
@VsevolodX VsevolodX deleted the feature/SOF-7545-1 branch January 24, 2025 01:03
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants