Commit c75a4a0a authored by gijs's avatar gijs
Browse files

Read local file rather than over http

parent 30d5402b
Pipeline #210 canceled with stages
......@@ -14,6 +14,7 @@ import settings
import json
import os
import os.path
said = ["said", "whispered", "shouted", "cried", "confessed", "expressed", "verbalized", "verbalised", "uttered", "claimed", "argued", "complained", "ironized", "said", "tweeted", "told", "stated", "sang", "interpreted", "rendered", "emited", "let out", "let loose", "talked", "spoke", "said", "whistled", "spilled the beans", "let the cat out of the bag", "talked", "tattled", "blabbed", "peached", "babbled", "babbled out", "blabbed out", "unwrapped", "disclosed", "let on", "said", "brought out", "revealed", "discovered", "exposed", "published", "divulged", "gave away", "declared", "admitted", "comitted"]
......@@ -36,7 +37,10 @@ def format_commits(commits_to_format):
return commits
def home(request):
ospblog = feedparser.parse('')
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 = feedparser.parse('')
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