Commit 96e4b928 authored by Mario Chirinos's avatar Mario Chirinos

status

parent 0e205dda
......@@ -152,6 +152,7 @@ def status(request):
status = {}
status["docs"] = News.objects.filter(publisher=p).count()
status["origen"]=p.region+", "+p.country
status["id"]=p.id
if status["docs"] > 0:
status["startDate"]=News.objects.filter(publisher=p).order_by('date')[0].date
status["endDate"]=News.objects.filter(publisher=p).order_by('-date')[0].date
......@@ -170,8 +171,7 @@ def status(request):
status["endDate"]=News.objects.filter(publisher=p).order_by('-date')[0].date
status["status"]=(datetime.datetime.now(datetime.timezone.utc)-status["endDate"]).days
status["origen"]=p.region+", "+p.country
status["id"]=p.region+", "+p.country
tdic2[p.name]=p.id
tdic2[p.name]=status
aPublishers = Publisher.objects.filter(type="audio")
......
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