Skip to content

Commit

Permalink
[MaestroCI]: Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
baalajimaestro committed Jul 24, 2019
1 parent 7a00951 commit f520eee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions userbot/modules/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def gdrive_upload(filename: str, filebuf: BytesIO = None) -> str:
drive = GoogleDrive(gauth)

filedata = {'title': filename, "parents": [
{"kind": "drive#fileLink", "id": GDRIVE_FOLDER}]}
{"kind": "drive#fileLink", "id": GDRIVE_FOLDER}]}

if filebuf:
mime_type = mimetypes.guess_type(filename)
Expand Down Expand Up @@ -157,7 +157,8 @@ async def gdrive(request):
return
if request.reply_to_msg_id:
buf = await download_from_tg(request)
reply += gdrive_upload(buf[0], buf[1]) if buf[1].name != "nomem" else gdrive_upload(buf[0])
reply += gdrive_upload(buf[0], buf[1]
) if buf[1].name != "nomem" else gdrive_upload(buf[0])
elif "|" in message:
url, file_name = message.split("|")
url = url.strip()
Expand Down Expand Up @@ -467,4 +468,3 @@ async def uploadas(uas_event):
"or .mirror <link> | <filename>\n"
"Usage: Downloads a file from telegram or link to the server then uploads to your GDrive."
})

0 comments on commit f520eee

Please sign in to comment.