Commit 533375a8 authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

login

parent 721221ba
from django.core.management.base import BaseCommand, CommandError
from catalog.models import User, News, Publisher, Topic, audioTime
from catalog.models import User, News, Publisher, Topic, audioTime, Search
from django.db.models import Q
import os
import json
......@@ -17,6 +17,7 @@ class Command(BaseCommand):
print ( "\tText: " + str(Publisher.objects.all().filter(type="texto").count()) )
print ( "\t\tDocuments: " + "{:,}".format(News.objects.all().count()) )
print ( "\tAudio: " + str(Publisher.objects.all().filter(type="audio").count()) )
print ( "Busquedas: " + str(Search.objects.all().count()) )
minutes = sum([a.minutes for a in audioTime.objects.all()])
......@@ -25,7 +26,12 @@ class Command(BaseCommand):
print("=======================================================")
textSources = Publisher.objects.all().filter(type="texto")
for t in textSources:
print(t.name + ", " + t.url + ", " + str(News.objects.all().filter(publisher=t).count()) )
if News.objects.all().filter(publisher=t).count() <= 0:
continue
newsP=News.objects.all().filter(publisher=t).order_by("date")
count = str(newsP.count())
date = newsP[0].date.date().strftime('%m/%d/%Y')
print(t.name + ", " + t.url + ", " + str(newsP.count()) +", "+ newsP[0].date.date().strftime('%d/%m/%Y') )
print("=======================================================")
audioSources = Publisher.objects.all().filter(type="audio")
for a in audioSources:
......
video {
position: fixed;
top: 50%;
left: 50%;
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
z-index: -100;
transform: translateX(-50%) translateY(-50%);
background-size: cover;
transition: 1s opacity;
}
.geointInfo
{
position:fixed;
right: 50pt;
bottom:0px;
}
.geointInfo a
{
color:lightgray;
}
.translucid
{
opacity:0.8;
}
No preview for this file type
This diff is collapsed.
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