Skip to content

Commit 820d72f

Browse files
committed
Fixed files not being shown which were not uploaded by bot
Signed-off-by: lzzy12 <[email protected]>
1 parent 48dae20 commit 820d72f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bot/helper/mirror_utils/upload_utils/gdriveTools.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class GoogleDriveHelper:
1616
def __init__(self, name=None, listener=None):
1717
self.__G_DRIVE_TOKEN_FILE = "token.pickle"
1818
# Check https://developers.google.com/drive/scopes for all available scopes
19-
self.__OAUTH_SCOPE = "https://www.googleapis.com/auth/drive.file"
19+
self.__OAUTH_SCOPE = "https://www.googleapis.com/auth/drive"
2020
# Redirect URI for installed apps, can be left as is
2121
self.__REDIRECT_URI = "urn:ietf:wg:oauth:2.0:oob"
2222
self.__G_DRIVE_DIR_MIME_TYPE = "application/vnd.google-apps.folder"

generate_drive_token.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
credentials = None
77
__G_DRIVE_TOKEN_FILE = "token.pickle"
8-
__OAUTH_SCOPE = ["https://www.googleapis.com/auth/drive.file"]
8+
__OAUTH_SCOPE = ["https://www.googleapis.com/auth/drive"]
99
if os.path.exists(__G_DRIVE_TOKEN_FILE):
1010
with open(__G_DRIVE_TOKEN_FILE, 'rb') as f:
1111
credentials = pickle.load(f)

0 commit comments

Comments
 (0)