improved fb fetching (since)
This commit is contained in:
@@ -98,7 +98,7 @@ def handle(handler,msg):
|
||||
lg.debug(msg['data'])
|
||||
|
||||
def make_article_json(art):
|
||||
res={"type":"article", "title":art.title+" (" +str(art.section.title())+")", "id": str(art.id), "url": art.url, "message_text": art.title + " " + art.url}
|
||||
res={"type":"article", "title":art.title+" (" +str(art.section.title())+")", "id": str(art.id), "url": art.url, "message_text": art.title +" (" +str(art.section.title())+")" + " " + art.url}
|
||||
if art.image != None:
|
||||
lg.debug("http://crawler.fachschaften.at/"+str(art.image))
|
||||
res["thumb_url"]="http://crawler.fachschaften.at/"+str(art.image)
|
||||
|
||||
Reference in New Issue
Block a user