2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-09-10 11:15:27 +00:00

Add enumerations

This commit is contained in:
Dan
2022-04-24 11:56:06 +02:00
parent 9661b804b6
commit bbad58a83f
83 changed files with 1376 additions and 868 deletions

View File

@@ -174,13 +174,13 @@ class HTML:
entities_offsets.append((start_tag, start,))
entities_offsets.append((end_tag, end,))
entities_offsets = map(
lambda x: x[1],
sorted(
enumerate(entities_offsets),
key = lambda x: (x[1][1], x[0]),
reverse = True
key=lambda x: (x[1][1], x[0]),
reverse=True
)
)