-
Notifications
You must be signed in to change notification settings - Fork 41
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
Incorrect first ayah #71
Comments
3laykum Salaam. What are you attempting to do? Draw images from the text? |
I'm trying to create images from the text. But I noticed an issue (I don't know if I'm the one causing the issue or not) where the first ayah of each surah is the second ayah. For example, in the image shown above, I was taking the first ayah from the API, but it was displaying to me the second ayah of surat Ash-Shura (42). |
It's an array of ayahs that gets returned, so you need to start with 0, not 1. I can try and take a look at the script next week, inshaAllah. |
Which is correct. Now you just need to filter out the bismillah so you get the حم. See #17 |
Salamu Alaykum
I've currently made the following program:
Toggle to view code (python)
But when you run it with
python3 main.py 42 --verse-num 1
, it gives you the second ayah instead of the first.Am I doing something wrong, or is something wrong with the data in the API?
The text was updated successfully, but these errors were encountered: