Unverified Commit ccc29ce0 authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

fix conversion error



Signed-off-by: Sebastian Schüpbach's avatarSebastian Schüpbach <sebastian.schuepbach@unibas.ch>
parent d107c994
Pipeline #15986 passed with stages
in 4 minutes and 28 seconds
......@@ -120,7 +120,7 @@ def _create_audio_snippet_entry(record, mariadbCursor):
snippet_record = record.copy()
snippet_record['sig'] = snippet_record['sig'] + '-intro'
snippet_record['duration'] = \
30.0 if snippet_record['duration'] >= 30.0 else snippet_record['duration']
30.0 if float(snippet_record['duration']) >= 30.0 else float(snippet_record['duration'])
snippet_record['mimetype'] = 'audio/mpeg'
snippet_record['uri'] = \
'.'.join(snippet_record['uri'].split('.')[0:-1]) + '-intro.mp3'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment