Skip to content

Commit

Permalink
🔨 Fix #192 Simplify range(0, x) to range(x) in Python (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
wei200 authored Dec 25, 2020
1 parent 9376d32 commit 06dd2d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/distancematrix/google_distance_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ async def convert_distancematrix_to_tuple(
len_1d: int = len(dm_response["rows"])
len_2d: int = len(dm_response["rows"][0]["elements"])
output: [] = [None] * len_1d
for i in range(0, len_1d):
for i in range(len_1d):
inner_list: [] = [None] * len_2d
for j in range(0, len_2d):
for j in range(len_2d):
inner_list[j] = dm_response["rows"][i]["elements"][j][measurement]["value"]
output[i] = tuple(inner_list)
return tuple(output)
Expand Down

0 comments on commit 06dd2d0

Please sign in to comment.