forked from MarseyWorld/MarseyWorld
print debugging
parent
9a93373739
commit
77d8dd8737
|
@ -57,6 +57,7 @@ def process_files(files, v, body):
|
|||
name = f'/images/{time.time()}'.replace('.','') + '.webp'
|
||||
file.save(name)
|
||||
url = process_image(name, v)
|
||||
print(f'{url} ', flush=True)
|
||||
body = body.replace(f'[{file.filename}]', f'{url} ', 1)
|
||||
elif file.content_type.startswith('video/'):
|
||||
body = body.replace(f'[{file.filename}]', process_video(file, v), 1)
|
||||
|
|
Loading…
Reference in New Issue