Skip to content

Commit af62db6

Browse files
authored
fix: some typos (#815)
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
1 parent c146129 commit af62db6

7 files changed

Lines changed: 10 additions & 10 deletions

run_page/codoon_sync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def tcx_output(fit_array, run_data):
242242
f.write(str(xml_str))
243243

244244

245-
# TODO time complexity is too heigh, need to be reduced
245+
# TODO time complexity is too high, need to be reduced
246246
def tcx_job(run_data):
247247
# fit struct array
248248
fit_array = None

run_page/garmin_device_adaptor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,5 @@ def do_wrap_device_info(origin_file):
6262
builder.add(message)
6363

6464
modified_file = builder.build()
65-
print("wrap garmin device info sucess, product id:", GARMIN_DEVICE_PRODUCT_ID)
65+
print("wrap garmin device info success, product id:", GARMIN_DEVICE_PRODUCT_ID)
6666
return modified_file.to_bytes()

run_page/garmin_to_strava_sync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"--is-cn",
2727
dest="is_cn",
2828
action="store_true",
29-
help="if garmin accout is cn",
29+
help="if garmin account is cn",
3030
)
3131
parser.add_argument(
3232
"--tcx",

run_page/get_garmin_secret.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"--is-cn",
1111
dest="is_cn",
1212
action="store_true",
13-
help="if garmin accout is cn",
13+
help="if garmin account is cn",
1414
)
1515
options = parser.parse_args()
1616
if options.is_cn:

run_page/keep_sync.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def parse_points_to_gpx(run_points_data, start_time, sport_type):
220220
Args:
221221
run_id (str): The ID of the run.
222222
run_points_data (list of dict): A list of run data points.
223-
start_time (int): The start time for adjusting timestamps. Note that the unit of the start_time is millsecond
223+
start_time (int): The start time for adjusting timestamps. Note that the unit of the start_time is millisecond
224224
225225
Returns:
226226
gpx_data (str): GPX data in string format.
@@ -283,9 +283,9 @@ def find_nearest_hr(
283283
heart_rate_data (list of dict): A list of heart rate data points, where each point is a dictionary
284284
containing at least "timestamp" and "beatsPerMinute" keys.
285285
target_time (float): The target timestamp for which to find the nearest heart rate data point. Please Note that the unit of target_time is decisecond(分秒),
286-
means 1/10 of a second ,this is very unsual!! so when we convert a target_time to second we need to divide by 10, and when we convert a target time to millsecond
286+
means 1/10 of a second ,this is very unusual!! so when we convert a target_time to second we need to divide by 10, and when we convert a target time to millsecond
287287
we need to times 100.
288-
start_time (float): The reference start time. the unit of start_time is normal millsecond timestamp
288+
start_time (float): The reference start time. the unit of start_time is normal millisecond timestamp
289289
threshold (float, optional): The maximum allowed time difference to consider a data point as the nearest.
290290
Default is HR_THRESHOLD, the unit is decisecond(分秒)
291291
@@ -298,7 +298,7 @@ def find_nearest_hr(
298298
if target_time > TIMESTAMP_THRESHOLD_IN_DECISECOND:
299299
target_time = (
300300
target_time * 100 - start_time
301-
) / 100 # note that the unit of target_time is decisecond(分秒) and the unit of start_time is normal millsecond
301+
) / 100 # note that the unit of target_time is decisecond and the unit of start_time is normal millisecond
302302

303303
for item in hr_data_list:
304304
timestamp = item["timestamp"]

run_page/strava_to_garmin_sync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ async def upload_to_activities(
118118
"--is-cn",
119119
dest="is_cn",
120120
action="store_true",
121-
help="if garmin accout is cn",
121+
help="if garmin account is cn",
122122
)
123123
parser.add_argument(
124124
"--use_fake_garmin_device",

run_page/tcx_to_strava_sync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def get_to_generate_files(last_time):
6969
upload_file_to_strava(client, tcx_file, "tcx")
7070

7171
except ActivityUploadFailed as e:
72-
print(f"Upload faild error {str(e)}")
72+
print(f"Upload failed error {str(e)}")
7373
# spider rule
7474
time.sleep(1)
7575

0 commit comments

Comments
 (0)