xdragxt commited on
Commit
ffbd337
·
verified ·
1 Parent(s): 1fec52a

Update pyUltroid/fns/helper.py

Browse files
Files changed (1) hide show
  1. pyUltroid/fns/helper.py +1 -1
pyUltroid/fns/helper.py CHANGED
@@ -400,7 +400,7 @@ async def download_file(link, name, validate=False):
400
  async def _download(content):
401
  if validate and "application/json" in content.headers.get("Content-Type"):
402
  return None, await content.json()
403
- with open(name, "wb") as file:
404
  file.write(await content.read())
405
  return name, ""
406
 
 
400
  async def _download(content):
401
  if validate and "application/json" in content.headers.get("Content-Type"):
402
  return None, await content.json()
403
+ with open(f"tmp/{name}", "wb") as file:
404
  file.write(await content.read())
405
  return name, ""
406