Commits

Cédric Bonhomme committed 30e76ea

Removed 'width=50%' parameter for the page of exported articles.

  • Participants
  • Parent commits 0c8cde8

Comments (0)

Files changed (2)

File source/export.py

                             (article["article_id"], article["article_title"][:150]) + "<br />\n"
 
             a_post = HTML_HEADER(article["article_title"])
-            a_post += '<div style="width: 50%; overflow:hidden; text-align: justify; margin:0 auto">\n'
+            a_post += '<div style="overflow:hidden; text-align: justify; margin:0 auto">\n'
             a_post += """<h1><a href="%s">%s</a></h1>\n<br />""" % \
                         (article["article_link"], article["article_title"])
             a_post += article["article_content"]

File source/mongodb.py

         Creates a new collection for a new feed.
         """
         collection = self.db[new_collection["feed_id"]]
-        collection.create_index([("article_date", pymongo.DESCENDING)], {"unique":False, "sparse":False})
+        #collection.create_index([("article_date", pymongo.DESCENDING)], {"unique":False, "sparse":False})
         collection.ensure_index('article_content', pymongo.ASCENDING)
         collection.insert(new_collection)