From 99d03d81d4cffc93525108d3187549b92615d365 Mon Sep 17 00:00:00 2001 From: Seth Woodworth Date: Mon, 1 Jul 2013 12:48:18 -0400 Subject: [PATCH] when uploading files to gdrive, ppt files will mark themselves as ppt files --- karmaworld/apps/notes/gdrive.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/karmaworld/apps/notes/gdrive.py b/karmaworld/apps/notes/gdrive.py index daa21fa..c12268d 100644 --- a/karmaworld/apps/notes/gdrive.py +++ b/karmaworld/apps/notes/gdrive.py @@ -170,7 +170,9 @@ def convert_with_google_drive(note): if extension.lower() == '.pdf': new_note.file_type = 'pdf' + elif extension.lower() in ['.ppt', '.pptx']: + new_note.file_type = 'ppt' now = datetime.datetime.utcnow() # create a folder path to store the ppt > pdf file with year and month folders nonce_path = '/ppt_pdf/%s/%s/' % (now.year, now.month) -- 2.25.1