From 9dce2689d05a3f60167f8481554e2c0f06f9ee73 Mon Sep 17 00:00:00 2001 From: Phyks Date: Sun, 27 Oct 2013 14:14:10 +0100 Subject: [PATCH] RSS + Tags * RSS is fully functional * Images for tags are automatically added --- pre-commit.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pre-commit.py b/pre-commit.py index 2ac5b65..23168e3 100755 --- a/pre-commit.py +++ b/pre-commit.py @@ -138,7 +138,7 @@ def replace_tags(article, search_list, replace_list): # Return text in
for rss description # ======================================================== def get_text_rss(content): - soup = BeautifulSoup(content) + soup = BeautifulSoup(content) date = soup.find(attrs={'class': 'date'}) date.extract() title = soup.find(attrs={'class': 'article_title'}) @@ -558,7 +558,8 @@ for filename in added_files+modified_files: tags_header = "" for tag in tags_full_list: tags_header += "
" - tags_header += "\"test\"" + tags_header += ("\"test\"") tags_header += (""+tag[9:-4]+"") tags_header += "
" try: