Skip to content

Commit 943e241

Browse files
committed
removed export_mimeTypes as attribute of GoogleDriveFile
1 parent 43cebbd commit 943e241

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

src/rid_lib/types/gdrive_file.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,6 @@
22
from rid_lib.types.gdrive_export import GoogleDriveExport
33

44

5-
document_mimeType = 'application/vnd.google-apps.document'
6-
sheets_mimeType = 'application/vnd.google-apps.spreadsheet'
7-
slides_mimeType = 'application/vnd.google-apps.presentation'
8-
9-
export_mimeType_map = {
10-
document_mimeType: {'text': {'plain': 'text/plain', 'markdown': 'text/markdown'}},
11-
sheets_mimeType: {'text': {'csv': 'text/csv', 'tab-separated-values': 'text/tab-separated-values'}},
12-
slides_mimeType: {'text': {'plain': 'text/plain'}}
13-
}
14-
export_mimeTypes = {
15-
document_mimeType: export_mimeType_map[document_mimeType]['text']['plain'], # 'text/plain'
16-
sheets_mimeType: export_mimeType_map[sheets_mimeType]['text']['csv'], # 'text/csv'
17-
slides_mimeType: export_mimeType_map[slides_mimeType]['text']['plain'], # 'text/plain'
18-
}
19-
205
class GoogleDriveFile(ORN):
216
namespace = 'google_drive.file'
227
mimeType = 'application/vnd.google-apps.file'

0 commit comments

Comments
 (0)