Update api spec (#119)
* YOYO NEW API SPEC! * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix Signed-off-by: Jess Frazelle <github@jessfraz.com> * I have generated the latest API! --------- Signed-off-by: Jess Frazelle <github@jessfraz.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
@ -26,7 +26,7 @@ def sync(
|
||||
|
||||
if isinstance(fc, FileConversion) and fc.output != "":
|
||||
if isinstance(fc.output, str):
|
||||
b = base64.b64decode(fc.output)
|
||||
b = base64.b64decode(fc.output + "=" * (-len(fc.output) % 4))
|
||||
# decode the bytes to a string
|
||||
fc.output = b.decode("utf-8")
|
||||
|
||||
@ -53,7 +53,7 @@ async def asyncio(
|
||||
|
||||
if isinstance(fc, FileConversion) and fc.output != "":
|
||||
if isinstance(fc.output, str):
|
||||
b = base64.b64decode(fc.output)
|
||||
b = base64.b64decode(fc.output + "=" * (-len(fc.output) % 4))
|
||||
# decode the bytes to a string
|
||||
fc.output = b.decode("utf-8")
|
||||
|
||||
|
Reference in New Issue
Block a user