Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add support for meta in CSV importer #35

Closed
subins2000 opened this issue Nov 15, 2023 · 0 comments
Closed

Add support for meta in CSV importer #35

subins2000 opened this issue Nov 15, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@subins2000
Copy link
Collaborator

subins2000 commented Nov 15, 2023

What I'm doing right now is put JSON in notes

-,അ,"അകം(1) അന്തരംഗം, മനസ്സ്‌",malayalam,"{""native"": ""അകം1 അന്തരംഗം മനസ്സ്‌"", ""en"": ""akam1 antharamgam manass‌"", ""ipa"": ""əkəm1 ən̪t̪əɾəmgəm mən̪əss"", ""iso"": ""akaṁ antaraṁgaṁ manass ""}",,,1-1,,

and then use Rails to put it as JSON into meta:

Entry.find_each do |entry|
  entry.update!(meta: JSON.parse(entry.notes))
rescue
  print("error #{entry.id}")
end

Better if dictpress does this directly

@knadh knadh closed this as completed in 8af7b4b Nov 16, 2023
@knadh knadh added the enhancement New feature or request label Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants