deveix commited on
Commit
973f1e3
·
1 Parent(s): e1967ee

add json data

Browse files
Files changed (1) hide show
  1. app/main.py +8 -1
app/main.py CHANGED
@@ -135,7 +135,14 @@ def get_text_by_block_number(filepath, block_numbers):
135
 
136
  blocks_text.append({
137
  "tafsir": tafsir,
138
- **row_data
 
 
 
 
 
 
 
139
  })
140
  if len(blocks_text) == len(block_numbers): # Stop reading once all required blocks are retrieved
141
  break
 
135
 
136
  blocks_text.append({
137
  "tafsir": tafsir,
138
+ "surah_no": row_data['surah_no'],
139
+ "surah_name_en": row_data['surah_name_en'],
140
+ "surah_name_ar": row_data['surah_name_ar'],
141
+ "surah_name_roman": row_data['surah_name_roman'],
142
+ "ayah_no_surah": row_data['ayah_no_surah'],
143
+ "ayah_no_quran": row_data['ayah_no_quran'],
144
+ "ayah_ar": row_data['ayah_ar'],
145
+ "ayah_en": row_data['ayah_en']
146
  })
147
  if len(blocks_text) == len(block_numbers): # Stop reading once all required blocks are retrieved
148
  break