whitespacebot
authorSeth Woodworth <seth@sethish.com>
Tue, 27 Aug 2013 13:35:35 +0000 (09:35 -0400)
committerSeth Woodworth <seth@sethish.com>
Tue, 27 Aug 2013 13:35:35 +0000 (09:35 -0400)
karmaworld/apps/notes/gdrive.py
karmaworld/apps/notes/models.py

index a89ef7beaeed82794f80527b2f85b169ad7b56a9..f122447b3e9f59afcb2b88ddc529a840e4080af2 100644 (file)
@@ -88,6 +88,7 @@ def download_from_gdrive(file_dict, http, extension):
     """ get urls from file_dict and download contextual files from google """
     download_urls = {}
     download_urls['text'] = file_dict[u'exportLinks']['text/plain']
+
     if extension.lower() in ['.ppt', 'pptx']:
         download_urls['pdf'] = file_dict[u'exportLinks']['application/pdf']
     else:
index 2aa6600ccc1a9e752e8a67d7f9f88ea4cb0bee26..dc574946a5cee11960ac1401f43e2301be003b47 100644 (file)
@@ -43,7 +43,7 @@ class Note(models.Model):
 
     name            = models.CharField(max_length=255, blank=True, null=True)
     slug            = models.SlugField(max_length=255, null=True)
-    year            = models.IntegerField(blank=True, null=True, 
+    year            = models.IntegerField(blank=True, null=True,
                         default=datetime.datetime.utcnow().year)
     desc            = models.TextField(max_length=511, blank=True, null=True)
     uploaded_at     = models.DateTimeField(null=True, default=datetime.datetime.utcnow)
@@ -120,7 +120,7 @@ class Note(models.Model):
             return u"/{0}/{1}/{2}".format(self.course.school.slug, self.course.slug, self.id)
 
     def sanitize_html(self, save=True):
-        """ if self contains html, find all <a> tags and add target=_blank 
+        """ if self contains html, find all <a> tags and add target=_blank
             takes self
             returns True/False on succ/fail and error or count
         """