Skip to content

Commit

Permalink
OneDrive: Fix upload
Browse files Browse the repository at this point in the history
The power💪 of silly mistake
  • Loading branch information
TechiError authored Aug 15, 2023
1 parent 7e93f99 commit 1393759
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/odrive.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ async def onedrive_upload(event):
time=5,
)

await event.eor("Uploading...")
status = await onedrv().upload_file(filename)
event = await event.eor("Uploading...")
status = await onedrv().upload_file(event, filename)
if status.get("error"):
return await event.eor(status.get("error"))
await event.eor(f"Uploaded to OneDrive: [{status.get('name')}]({status.get('shareUrl')})\nTemp Download url [1 hour]: [{status.get('name')}]({status.get('@content.downloadUrl')}).")
Expand Down

0 comments on commit 1393759

Please sign in to comment.