when uploading files to gdrive, ppt files will mark themselves as ppt files
authorSeth Woodworth <seth@sethish.com>
Mon, 1 Jul 2013 16:48:18 +0000 (12:48 -0400)
committerSeth Woodworth <seth@sethish.com>
Mon, 1 Jul 2013 16:48:18 +0000 (12:48 -0400)
karmaworld/apps/notes/gdrive.py

index daa21fa0c59f053f54c4127f01dd71786570a665..c12268d2f84e260337ffbea80fce9db75ad205d9 100644 (file)
@@ -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)