[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot]
2024-01-28 08:11:55 +00:00
parent 9068b58bf6
commit ab6b67f88b

View File

@@ -155,7 +155,7 @@ class ApiHelper:
try:
response_segments = response["segments"]
# sort by end
response_segments = sorted(response_segments, key = lambda x: x["segment"][1])
response_segments = sorted(response_segments, key=lambda x: x["segment"][1])
# extend ends of overlapping segments to make one big segment
for i in response_segments:
for j in response_segments:
@@ -163,7 +163,7 @@ class ApiHelper:
i["segment"][1] = j["segment"][1]
# sort by start
response_segments = sorted(response_segments, key = lambda x: x["segment"][0])
response_segments = sorted(response_segments, key=lambda x: x["segment"][0])
# extend starts of overlapping segments to make one big segment
for i in response_segments:
for j in response_segments: