Fix unsorted Telegram API entries

This commit is contained in:
Dan 2018-09-29 11:38:58 +02:00
parent 8ea556b65f
commit 9023d999b8

View File

@ -88,7 +88,7 @@ def generate(source_path, base):
inner_path = base + "/" + k + "/index" + ".rst" inner_path = base + "/" + k + "/index" + ".rst"
module = "pyrogram.api.{}.{}".format(base, k) module = "pyrogram.api.{}.{}".format(base, k)
else: else:
for i in list(all_entities)[::-1]: for i in sorted(list(all_entities), reverse=True):
if i != base: if i != base:
entities.insert(0, "{0}/index".format(i)) entities.insert(0, "{0}/index".format(i))