Commit 54eda9fe authored by Mario Chirinos's avatar Mario Chirinos

websearch

parent d7270ff2
......@@ -320,13 +320,14 @@ def wsSearchList(request):
#-------------------------------------------------------------------------------
def wsNewsList2(request):
print("wsNewsList2")
news = getNewsByRequest(request)
data = [{"id":n.id, "publisher":n.publisher.name, "text":n.text, "date":n.date.strftime('%Y-%m-%d')} for n in news]
return HttpResponse(json.dumps(data), content_type="application/json")
#-------------------------------------------------------------------------------
def wsNewsList(request):#, publisherShortName="all"):
print("wsNewsList")
print ("GET REQUEST", request.GET)
columns = ['title', 'url', 'date']
......
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