We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1c48b8 commit 788b436Copy full SHA for 788b436
pythonkr_backend/curation/utils_trans.py
@@ -69,11 +69,12 @@ def translate_rssitem(rss_item_id: int):
69
source_url=rss_item.link
70
)
71
72
+ # save to get instance id
73
+ translated_content.save()
74
# Save the translated content to a file
75
content_file = ContentFile(result.output.content, name=f"{rss_item.id}-translated.md")
76
translated_content.content.save(f"{rss_item.id}-translated.md", content_file)
-
- # Save the instance
77
+ # save again to update the content field
78
translated_content.save()
79
80
# Create LLM usage record
0 commit comments