bin/json/pull-chapters-data: tweak.
This commit is contained in:
parent
5dd6efa3d6
commit
9c0aeb5ace
1 changed files with 8 additions and 8 deletions
|
@ -45,15 +45,15 @@ ar_chapters = request_chapters.call('/ar')
|
||||||
|
|
||||||
##
|
##
|
||||||
# Parse chapter data
|
# Parse chapter data
|
||||||
parsed = en_chapters.map do
|
parsed = en_chapters.map do |key, chapter|
|
||||||
{
|
{
|
||||||
id: _1,
|
id: key,
|
||||||
place_of_revelation: _2['revelationPlace'],
|
place_of_revelation: chapter['revelationPlace'],
|
||||||
transliterated_name: _2['transliteratedName'],
|
transliterated_name: chapter['transliteratedName'],
|
||||||
translated_name: _2['translatedName'],
|
translated_name: chapter['translatedName'],
|
||||||
verse_count: _2['versesCount'],
|
verse_count: chapter['versesCount'],
|
||||||
slug: _2['slug'],
|
slug: chapter['slug'],
|
||||||
codepoints: ar_chapters[_1]['translatedName'].codepoints,
|
codepoints: ar_chapters[key]['translatedName'].codepoints
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue