aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/export.py2
-rw-r--r--source/mongodb.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/source/export.py b/source/export.py
index fe13db9a..b53b21bf 100644
--- a/source/export.py
+++ b/source/export.py
@@ -112,7 +112,7 @@ def export_html(mongo_db):
(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"]
diff --git a/source/mongodb.py b/source/mongodb.py
index 7d593e46..22d82b86 100644
--- a/source/mongodb.py
+++ b/source/mongodb.py
@@ -45,7 +45,7 @@ class Articles(object):
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)
bgstack15