projects
/
oweals
/
karmaworld.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ab4df4
)
when uploading files to gdrive, ppt files will mark themselves as ppt files
author
Seth Woodworth
<seth@sethish.com>
Mon, 1 Jul 2013 16:48:18 +0000
(12:48 -0400)
committer
Seth Woodworth
<seth@sethish.com>
Mon, 1 Jul 2013 16:48:18 +0000
(12:48 -0400)
karmaworld/apps/notes/gdrive.py
patch
|
blob
|
history
diff --git
a/karmaworld/apps/notes/gdrive.py
b/karmaworld/apps/notes/gdrive.py
index daa21fa0c59f053f54c4127f01dd71786570a665..c12268d2f84e260337ffbea80fce9db75ad205d9 100644
(file)
--- 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)