Skip to content

Commit

Permalink
fix google drive stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
Avinash Reddy committed Sep 22, 2019
1 parent 520b747 commit bed53ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions userbot/modules/gdrive.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ async def upload_dir_to_gdrive(event):
# first, create a sub-directory
dir_id = await create_directory(
http, os.path.basename(os.path.abspath(input_str)), parent_id)
await DoTeskWithDir(http, input_str, mone, dir_id)
await DoTeskWithDir(http, input_str, event, dir_id)
dir_link = "https://drive.google.com/folderview?id={}".format(dir_id)
await event.edit(f"Here is your Google Drive [link]({dir_link})")
else:
Expand All @@ -190,7 +190,7 @@ async def upload_dir_to_gdrive(event):
async def gdrive_search_list(event):
await event.edit("Processing ...")
if CLIENT_ID is None or CLIENT_SECRET is None:
await mone.edit(
await event.edit(
"This module requires credentials from https://da.gd/so63O. Aborting!"
)
return
Expand Down

0 comments on commit bed53ee

Please sign in to comment.