API - fix typo

This commit is contained in:
Sam 2022-06-22 16:55:16 +02:00
parent fd2cf9fe77
commit 1343d0a633

View File

@ -382,12 +382,12 @@ def on_workout_delete(
try: try:
os.remove(get_absolute_file_path(old_record.map)) os.remove(get_absolute_file_path(old_record.map))
except OSError: except OSError:
appLog.error('map file not find when deleting workout') appLog.error('map file not found when deleting workout')
if old_record.gpx: if old_record.gpx:
try: try:
os.remove(get_absolute_file_path(old_record.gpx)) os.remove(get_absolute_file_path(old_record.gpx))
except OSError: except OSError:
appLog.error('gpx file not find when deleting workout') appLog.error('gpx file not found when deleting workout')
class WorkoutSegment(BaseModel): class WorkoutSegment(BaseModel):