eutampieri / songbook

GNU Affero General Public License v3.0
0 stars 1 forks source link

Sort songs alphabetically in index.json #2

Closed eutampieri closed 2 years ago

eutampieri commented 2 years ago

index.json is generated in make_index.py

ArshErgon commented 2 years ago

is it made on Flask? and can please tell me how to run this project locally?

eutampieri commented 2 years ago

No, it isn't. If you look at the code I iterate over a set of files. The repo is all you need to run the project; I've added sample files that you have to rename to .json

ArshErgon commented 2 years ago

so, I just have to rename example.json.sample to example.json I was thinking that I have to change some code in make_index.py to sort the songs. but sure, will do it,

eutampieri commented 2 years ago

No, I've provided you some sample files so you can actually work (and test) on something. Beware because the provided examples already produce a sorted output, but that's not true for every case. Perhaps sorting on the resulting Python list (by song title) before saving it to JSON is enough

ArshErgon commented 2 years ago

okay, cool. assign it to me