Spaces:
Sleeping
Sleeping
OnlyBiggg
commited on
Commit
·
5f24f58
1
Parent(s):
b8cbc0b
fix
Browse files
utils/format_data_dialog.py
CHANGED
|
@@ -11,10 +11,11 @@ def find_surrounding_times(time_list: list, time: str) -> list:
|
|
| 11 |
:param time: Time string to find the surrounding times for.
|
| 12 |
:return: List of surrounding times in "HH:mm" format.
|
| 13 |
"""
|
|
|
|
| 14 |
times = [item["time"] for item in time_list]
|
| 15 |
-
|
| 16 |
index = bisect_left(times, time)
|
| 17 |
-
|
| 18 |
start = max(0, index - 2)
|
| 19 |
end = min(len(time_list), index + 2)
|
| 20 |
|
|
|
|
| 11 |
:param time: Time string to find the surrounding times for.
|
| 12 |
:return: List of surrounding times in "HH:mm" format.
|
| 13 |
"""
|
| 14 |
+
print(time_list)
|
| 15 |
times = [item["time"] for item in time_list]
|
| 16 |
+
print(times)
|
| 17 |
index = bisect_left(times, time)
|
| 18 |
+
print(index)
|
| 19 |
start = max(0, index - 2)
|
| 20 |
end = min(len(time_list), index + 2)
|
| 21 |
|