Commit 28a05d06 authored by gijs's avatar gijs

Back to loading feed over http.

parent d5f85061
Pipeline #217 failed with stages
......@@ -37,11 +37,7 @@ def format_commits(commits_to_format):
return commits
def home(request):
if os.path.exists('/home/osp/apps/tools.osp-blog.www/output/feeds/all.atom.xml'):
ospblog = feedparser.parse('/home/osp/apps/tools.osp-blog.www/output/feeds/all.atom.xml')
ospblog.link = 'http://blog.osp.kitchen/'
else:
ospblog = feedparser.parse('http://blog.osp.kitchen/feeds/all.atom.xml')
ospblog = feedparser.parse('http://blog.osp.kitchen/feeds/all.atom.xml')
ospblog = ospblog.entries[:3]
data = get_api('home')
repos = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment