- +1 minor fix

This commit is contained in:
Dmytro Bogovych 2023-08-22 15:20:16 +03:00
parent d0bae36d83
commit 38df4a6209
1 changed files with 2 additions and 1 deletions

View File

@ -114,6 +114,7 @@ def upload_results():
# Path to audio # Path to audio
path_audio = t[1] path_audio = t[1]
print(f'Found {path_report.name} and {path_audio.name} files.')
try: try:
with open(path_report, 'rt') as f: with open(path_report, 'rt') as f:
report = json.loads(f.read()) report = json.loads(f.read())
@ -131,7 +132,7 @@ def upload_results():
path_audio_fixed = CACHE.dir / f'{upload_id}.wav' path_audio_fixed = CACHE.dir / f'{upload_id}.wav'
path_audio = path_audio.rename(path_audio_fixed) path_audio = path_audio.rename(path_audio_fixed)
utils.log(f'Uploading {path_report.name} and {path_audio.name} files...')
# Upload recorded audio # Upload recorded audio
upload_result = BackendServer.upload_audio(upload_id, path_audio) upload_result = BackendServer.upload_audio(upload_id, path_audio)
if upload_result: if upload_result: