fix reversed get_neighbors on below

This commit is contained in:
Xevion
2020-08-10 14:51:01 -05:00
parent 00b4163da1
commit 9f80495a15

View File

@@ -29,4 +29,4 @@ def get_neighbors(array: List, index: int, distance: int = 2) -> Tuple[List, Lis
top.append(array[top_index])
if below_index < len(array):
below.append(array[below_index])
return top[::-1], below[::-1]
return top[::-1], below